From 413bcdabbd5a166de158197b13c9e0b6cae901e5 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sat, 23 Jul 2011 12:49:56 +0000 Subject: [PATCH] Set up app-specific email addresses so the respective developers will be notified about failures in code they have worked with. - Legacy-Id: 3205 --- ietf/cookies/__init__.py | 18 ++++++++++++++++++ ietf/iesg/__init__.py | 18 ++++++++++++++++++ ietf/ietfworkflows/__init__.py | 18 ++++++++++++++++++ ietf/liaisons/__init__.py | 17 +++++++++++++++++ ietf/submit/__init__.py | 18 ++++++++++++++++++ ietf/wgchairs/__init__.py | 18 ++++++++++++++++++ 6 files changed, 107 insertions(+) diff --git a/ietf/cookies/__init__.py b/ietf/cookies/__init__.py index 53b0062c1..c9e64c406 100644 --- a/ietf/cookies/__init__.py +++ b/ietf/cookies/__init__.py @@ -1,2 +1,20 @@ # Copyright The IETF Trust 2010, All Rights Reserved +# coding: latin-1 + +from types import ModuleType +import urls, views + +# These people will be sent a stack trace if there's an uncaught exception in +# code any of the modules imported above: +DEBUG_EMAILS = [ + ('Tero Kivinen', 'kivinen@iki.fi'), +] + +for k in locals().keys(): + m = locals()[k] + if isinstance(m, ModuleType): + if hasattr(m, "DEBUG_EMAILS"): + DEBUG_EMAILS += list(getattr(m, "DEBUG_EMAILS")) + setattr(m, "DEBUG_EMAILS", DEBUG_EMAILS) + diff --git a/ietf/iesg/__init__.py b/ietf/iesg/__init__.py index a4b306690..9fbb746ea 100644 --- a/ietf/iesg/__init__.py +++ b/ietf/iesg/__init__.py @@ -1,2 +1,20 @@ # Copyright The IETF Trust 2007, All Rights Reserved +# coding: latin-1 + +from types import ModuleType +import urls, models, views, feeds, admin + +# These people will be sent a stack trace if there's an uncaught exception in +# code any of the modules imported above: +DEBUG_EMAILS = [ + ('Ole Laursen', 'olau@iola.dk'), +] + +for k in locals().keys(): + m = locals()[k] + if isinstance(m, ModuleType): + if hasattr(m, "DEBUG_EMAILS"): + DEBUG_EMAILS += list(getattr(m, "DEBUG_EMAILS")) + setattr(m, "DEBUG_EMAILS", DEBUG_EMAILS) + diff --git a/ietf/ietfworkflows/__init__.py b/ietf/ietfworkflows/__init__.py index e69de29bb..e8d53c9a3 100644 --- a/ietf/ietfworkflows/__init__.py +++ b/ietf/ietfworkflows/__init__.py @@ -0,0 +1,18 @@ +# coding: latin-1 + +from types import ModuleType +import urls, models, views, forms, accounts + +# These people will be sent a stack trace if there's an uncaught exception in +# code any of the modules imported above: +DEBUG_EMAILS = [ + ('Emilio A. Sánchez', 'esanchez@yaco.es'), +] + +for k in locals().keys(): + m = locals()[k] + if isinstance(m, ModuleType): + if hasattr(m, "DEBUG_EMAILS"): + DEBUG_EMAILS += list(getattr(m, "DEBUG_EMAILS")) + setattr(m, "DEBUG_EMAILS", DEBUG_EMAILS) + diff --git a/ietf/liaisons/__init__.py b/ietf/liaisons/__init__.py index a4b306690..00693fb58 100644 --- a/ietf/liaisons/__init__.py +++ b/ietf/liaisons/__init__.py @@ -1,2 +1,19 @@ # Copyright The IETF Trust 2007, All Rights Reserved +# coding: latin-1 + +from types import ModuleType +import urls, models, views, forms, accounts, admin, utils, widgets, mail, decorators, sitemaps, feeds + +# These people will be sent a stack trace if there's an uncaught exception in +# code any of the modules imported above: +DEBUG_EMAILS = [ + ('Emilio A. Sánchez', 'esanchez@yaco.es'), +] + +for k in locals().keys(): + m = locals()[k] + if isinstance(m, ModuleType): + if hasattr(m, "DEBUG_EMAILS"): + DEBUG_EMAILS += list(getattr(m, "DEBUG_EMAILS")) + setattr(m, "DEBUG_EMAILS", DEBUG_EMAILS) diff --git a/ietf/submit/__init__.py b/ietf/submit/__init__.py index e69de29bb..101ca60a0 100644 --- a/ietf/submit/__init__.py +++ b/ietf/submit/__init__.py @@ -0,0 +1,18 @@ +# coding: latin-1 + +from types import ModuleType +import urls, models, views, forms, utils, admin + +# These people will be sent a stack trace if there's an uncaught exception in +# code any of the modules imported above: +DEBUG_EMAILS = [ + ('Emilio A. Sánchez', 'esanchez@yaco.es'), +] + +for k in locals().keys(): + m = locals()[k] + if isinstance(m, ModuleType): + if hasattr(m, "DEBUG_EMAILS"): + DEBUG_EMAILS += list(getattr(m, "DEBUG_EMAILS")) + setattr(m, "DEBUG_EMAILS", DEBUG_EMAILS) + diff --git a/ietf/wgchairs/__init__.py b/ietf/wgchairs/__init__.py index e69de29bb..e8d53c9a3 100644 --- a/ietf/wgchairs/__init__.py +++ b/ietf/wgchairs/__init__.py @@ -0,0 +1,18 @@ +# coding: latin-1 + +from types import ModuleType +import urls, models, views, forms, accounts + +# These people will be sent a stack trace if there's an uncaught exception in +# code any of the modules imported above: +DEBUG_EMAILS = [ + ('Emilio A. Sánchez', 'esanchez@yaco.es'), +] + +for k in locals().keys(): + m = locals()[k] + if isinstance(m, ModuleType): + if hasattr(m, "DEBUG_EMAILS"): + DEBUG_EMAILS += list(getattr(m, "DEBUG_EMAILS")) + setattr(m, "DEBUG_EMAILS", DEBUG_EMAILS) +