Code

allow negative items, helping construct forms
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 13 Nov 2003 05:55:01 +0000 (05:55 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 13 Nov 2003 05:55:01 +0000 (05:55 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1985 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/templating.py

index 4a90637d6168124a680655a7d58e41a887270c78..062462bff6e7c1a58d7b25615c047d9405ad8cfb 100644 (file)
@@ -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