[extensions-web] Allow the underscore in UUIDs



commit 245560716570f8c603df9bd6809b5b7bf63cd3b3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Nov 10 13:03:37 2011 -0500

    Allow the underscore in UUIDs

 sweettooth/extensions/models.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/extensions/models.py b/sweettooth/extensions/models.py
index 54d275b..5f25f15 100644
--- a/sweettooth/extensions/models.py
+++ b/sweettooth/extensions/models.py
@@ -32,7 +32,7 @@ REJECTED_STATUSES = (STATUS_REJECTED,)
 REVIEWED_STATUSES = (STATUS_REJECTED, STATUS_INACTIVE, STATUS_ACTIVE)
 
 def validate_uuid(uuid):
-    if re.match('[-a-zA-Z0-9  ]+$', uuid) is None:
+    if re.match('[-a-zA-Z0-9  _]+$', uuid) is None:
         return False
 
     if uuid.endswith('.gnome.org'):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]