From: richard Date: Tue, 24 Sep 2002 05:48:06 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3937e8bedffe105c2eed9083895368e955f07fa7;p=roundup.git *** empty log message *** git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1225 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index 06547ca..733150d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -24,6 +24,8 @@ are given with the most recent entry first. cases (there's a lot of __debug__ use) - fix :required for Link menus - import wasn't setting the ID to maxid+1 +- added getItem to HTMLClass so you can access arbitrary items in templates +- index filtering form values may now be key values too 2002-09-13 0.5.0 beta2 diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index a2bfc4e..8bf2cee 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -287,7 +287,7 @@ class HTMLClass(HTMLPermissions): if form.has_key(item): if isinstance(prop, hyperdb.Multilink): value = lookupIds(self._db, prop, - handleListCGIValue(form[item])) + handleListCGIValue(None, form[item])) elif isinstance(prop, hyperdb.Link): value = form[item].value.strip() if value: @@ -1279,7 +1279,7 @@ class HTMLRequest: # filtering self.filter = [] if self.form.has_key(':filter'): - self.filter = handleListCGIValue(self.form[':filter']) + self.filter = handleListCGIValue(None, self.form[':filter']) self.filterspec = {} db = self.client.db if self.classname is not None: @@ -1357,7 +1357,7 @@ class HTMLRequest: d.update(self.__dict__) f = '' for k in self.form.keys(): - f += '\n %r=%r'%(k,handleListCGIValue(self.form[k])) + f += '\n %r=%r'%(k,handleListCGIValue(None, self.form[k])) d['form'] = f e = '' for k,v in self.env.items():