Skip to content

Commit f5e0ecd

Browse files
author
Richard Jones
committed
allow negative (new) ids in getItem
1 parent 9abf43a commit f5e0ecd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ are given with the most recent entry first.
55
Fixed:
66
- mailgw handling of subject-line errors
77
- allow serving of non-"file"-Class file content (eg. paper_file)
8+
- allow negative (new) ids in getItem
89

910

1011
2003-12-17 0.6.4

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)