From cec19efc39a79e7f14c363211878f8ee4f89c960 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 24 Mar 2004 05:56:49 +0000 Subject: [PATCH] sigh.. not python2.3 yet git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2174 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/templating.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 0d644dd..a403481 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -276,7 +276,7 @@ class HTMLDatabase: 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 @@ class HTMLClass(HTMLInputMixin, HTMLPermissions): 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: -- 2.30.2