Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 1963:63d588757872 maint-0.6
allow negative (new) ids in getItem
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 07 Jan 2004 22:47:18 +0000 |
| parents | eb7aa7546e13 |
| children | 52d77d3be040 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Wed Jan 07 22:44:44 2004 +0000 +++ b/roundup/cgi/templating.py Wed Jan 07 22:47:18 2004 +0000 @@ -347,7 +347,7 @@ ''' 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
