From 4f9b23d1dd4d91d0a3e5f3dfddb91700837c9a9f Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 13 Nov 2003 05:55:01 +0000 Subject: [PATCH] allow negative items, helping construct forms git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1985 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 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 -- 2.30.2