changeset 1201:0f1224acffbb

*** empty log message ***
author Richard Jones <richard@users.sourceforge.net>
date Tue, 24 Sep 2002 05:48:06 +0000
parents 0a7bd082b94a
children 01a143f9382e
files CHANGES.txt roundup/cgi/templating.py
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Tue Sep 24 05:45:39 2002 +0000
+++ b/CHANGES.txt	Tue Sep 24 05:48:06 2002 +0000
@@ -24,6 +24,8 @@
   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
--- a/roundup/cgi/templating.py	Tue Sep 24 05:45:39 2002 +0000
+++ b/roundup/cgi/templating.py	Tue Sep 24 05:48:06 2002 +0000
@@ -287,7 +287,7 @@
             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 @@
         # 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 @@
         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():

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