From: richard Date: Thu, 13 Nov 2003 05:55:01 +0000 (+0000) Subject: allow negative items, helping construct forms X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4f9b23d1dd4d91d0a3e5f3dfddb91700837c9a9f;p=roundup.git allow negative items, helping construct forms git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1985 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 4a90637..062462b 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -347,7 +347,7 @@ class HTMLClass(HTMLPermissions): ''' Return this class' designator (classname) ''' return self._classname - def getItem(self, itemid, num_re=re.compile('\d+')): + def getItem(self, itemid, num_re=re.compile('-?\d+')): ''' Get an item of this class by its item id. ''' # make sure we're looking at an itemid