changeset 2106:12a902ea1dcd

sigh.. not python2.3 yet
author Richard Jones <richard@users.sourceforge.net>
date Wed, 24 Mar 2004 05:56:49 +0000
parents 44f3c1dd636b
children b7404a96b58a
files roundup/cgi/templating.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Wed Mar 24 05:56:07 2004 +0000
+++ b/roundup/cgi/templating.py	Wed Mar 24 05:56:49 2004 +0000
@@ -276,7 +276,7 @@
             m.append(HTMLClass(self._client, item))
         return r
 
-def lookupIds(db, prop, ids, fail_ok=False, num_re=re.compile('-?\d+')):
+def lookupIds(db, prop, ids, fail_ok=0, num_re=re.compile('-?\d+')):
     ''' "fail_ok" should be specified if we wish to pass through bad values
         (most likely form values that we wish to represent back to the user)
     '''
@@ -401,12 +401,12 @@
             if form.has_key(item):
                 if isinstance(prop, hyperdb.Multilink):
                     value = lookupIds(self._db, prop,
-                        handleListCGIValue(form[item]), fail_ok=True)
+                        handleListCGIValue(form[item]), fail_ok=1)
                 elif isinstance(prop, hyperdb.Link):
                     value = form[item].value.strip()
                     if value:
                         value = lookupIds(self._db, prop, [value],
-                            fail_ok=True)[0]
+                            fail_ok=1)[0]
                     else:
                         value = None
                 else:

Roundup Issue Tracker: http://roundup-tracker.org/