Skip to content

Commit e4f82f2

Browse files
author
Richard Jones
committed
sigh.. not python2.3 yet
1 parent d790b43 commit e4f82f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/cgi/templating.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def classes(self):
276276
m.append(HTMLClass(self._client, item))
277277
return r
278278

279-
def lookupIds(db, prop, ids, fail_ok=False, num_re=re.compile('-?\d+')):
279+
def lookupIds(db, prop, ids, fail_ok=0, num_re=re.compile('-?\d+')):
280280
''' "fail_ok" should be specified if we wish to pass through bad values
281281
(most likely form values that we wish to represent back to the user)
282282
'''
@@ -401,12 +401,12 @@ def __getitem__(self, item):
401401
if form.has_key(item):
402402
if isinstance(prop, hyperdb.Multilink):
403403
value = lookupIds(self._db, prop,
404-
handleListCGIValue(form[item]), fail_ok=True)
404+
handleListCGIValue(form[item]), fail_ok=1)
405405
elif isinstance(prop, hyperdb.Link):
406406
value = form[item].value.strip()
407407
if value:
408408
value = lookupIds(self._db, prop, [value],
409-
fail_ok=True)[0]
409+
fail_ok=1)[0]
410410
else:
411411
value = None
412412
else:

0 commit comments

Comments
 (0)