From ea490af05c0d37254770d952370a357e0cc5af9e Mon Sep 17 00:00:00 2001 From: stefan Date: Thu, 19 Feb 2009 23:23:35 +0000 Subject: [PATCH] Fix designator regular expression in HTMLDatabase.__getitem__. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4147 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index ce4daaf..f32b1e0 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -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\w+)(?P[-\d]+)')): + def __getitem__(self, item, desre=re.compile(r'(?P[a-zA-Z_]+)(?P[-\d]+)')): # check to see if we're actually accessing an item m = desre.match(item) if m: -- 2.30.2