summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2009-10-22 15:16:57 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2009-10-22 15:16:57 (GMT)
commitaeb6585052fb30c2a33625863df07cb6d2584526 (patch)
treecfb699a7a1fa64133525a7ee11b0972229b3b0c2
parentb6b347d2766c6487f8d54e4ece5606294e056d07 (diff)
downloadpratic-aeb6585052fb30c2a33625863df07cb6d2584526.zip
pratic-aeb6585052fb30c2a33625863df07cb6d2584526.tar.gz
pratic-aeb6585052fb30c2a33625863df07cb6d2584526.tar.bz2
Properly set the regex as a string
-rw-r--r--idp/extra/modules/identities_ui.ptl2
1 files changed, 1 insertions, 1 deletions
diff --git a/idp/extra/modules/identities_ui.ptl b/idp/extra/modules/identities_ui.ptl
index b866f03..c40d7b7 100644
--- a/idp/extra/modules/identities_ui.ptl
+++ b/idp/extra/modules/identities_ui.ptl
@@ -496,7 +496,7 @@ class IdentitiesDirectory(Directory):
if form.is_submitted():
uid = form.get_widget('uid').parse()
- if uid and not re.match('^[A-Za-z0-9]+$', uid):
+ if uid and not re.match(str('^[A-Za-z0-9]+$'), uid):
form.set_error('uid', _('wrong format'))
if form.is_submitted() and not form.has_errors():