changeset 4055:de832c486f86

Fix designator regular expression in HTMLDatabase.__getitem__.
author Stefan Seefeld <stefan@seefeld.name>
date Thu, 19 Feb 2009 23:23:35 +0000
parents 6070bc4935fa
children a82b17500b22
files roundup/cgi/templating.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Feb 19 23:16:00 2009 +0000
+++ b/roundup/cgi/templating.py	Thu Feb 19 23:23:35 2009 +0000
@@ -341,7 +341,7 @@
         # 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:

Roundup Issue Tracker: http://roundup-tracker.org/