Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 2010:1b11ffd8015e
forward-porting of fixed edit action / parsePropsFromForm...
to handle index-page edits better
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 13 Feb 2004 01:32:37 +0000 |
| parents | fc52d57c6c3e |
| children | 366d3bbce982 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Fri Feb 13 01:31:03 2004 +0000 +++ b/roundup/cgi/templating.py Fri Feb 13 01:32:37 2004 +0000 @@ -407,7 +407,7 @@ ''' Get an item of this class by its item id. ''' # make sure we're looking at an itemid - if not num_re.match(itemid): + if not isinstance(itemid, type(1)) and not num_re.match(itemid): itemid = self._klass.lookup(itemid) if self.classname == 'user':
