Skip to content

Commit e1672f1

Browse files
author
Richard Jones
committed
allow negative items, helping construct forms
1 parent 6dc0692 commit e1672f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def designator(self):
347347
''' Return this class' designator (classname) '''
348348
return self._classname
349349

350-
def getItem(self, itemid, num_re=re.compile('\d+')):
350+
def getItem(self, itemid, num_re=re.compile('-?\d+')):
351351
''' Get an item of this class by its item id.
352352
'''
353353
# make sure we're looking at an itemid

0 commit comments

Comments
 (0)