From: stefan Date: Thu, 19 Feb 2009 23:23:35 +0000 (+0000) Subject: Fix designator regular expression in HTMLDatabase.__getitem__. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ea490af05c0d37254770d952370a357e0cc5af9e;p=roundup.git 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 --- 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: