Code

Fix designator regular expression in HTMLDatabase.__getitem__.
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 19 Feb 2009 23:23:35 +0000 (23:23 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 19 Feb 2009 23:23:35 +0000 (23:23 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4147 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index ce4daaf2a00758410c131d298d88894af1bb9a5e..f32b1e0e2c6d43748c873d8c391533e1ee785a44 100644 (file)
@@ -341,7 +341,7 @@ class HTMLDatabase:
         # we want config to be exposed
         self.config = client.db.config
 
-    def __getitem__(self, item, desre=re.compile(r'(?P<cl>\w+)(?P<id>[-\d]+)')):
+    def __getitem__(self, item, desre=re.compile(r'(?P<cl>[a-zA-Z_]+)(?P<id>[-\d]+)')):
         # check to see if we're actually accessing an item
         m = desre.match(item)
         if m: