[PATCH] Allow non @debian.org emails in debug mode.
Serafeim Zanikolas
serzan at hellug.gr
Mon Feb 2 23:22:12 CET 2009
---
debexpo/lib/schemas.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/debexpo/lib/schemas.py b/debexpo/lib/schemas.py
index 3113c62..d943fad 100644
--- a/debexpo/lib/schemas.py
+++ b/debexpo/lib/schemas.py
@@ -37,6 +37,8 @@ __license__ = 'MIT'
import formencode
+from pylons import config
+
from debexpo.lib.validators import NewEmailToSystem, NewDebianEmailToSystem, GpgKey, \
CurrentPassword, CheckBox
@@ -118,4 +120,7 @@ class SponsorForm(RegisterForm):
"""
Schema for the sponsor registration form in the register controller.
"""
- email = NewDebianEmailToSystem(not_empty=True)
+ if config['debug']: # allow non-DD emails for debugging
+ email = NewEmailToSystem(not_empty=True)
+ else:
+ email = NewDebianEmailToSystem(not_empty=True)
--
1.5.6.5
--+QahgC5+KEYLbs62
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0001-Add-table-cell-padding.patch"
More information about the debexpo-devel
mailing list