Code

*** empty log message ***
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 24 Sep 2002 05:48:06 +0000 (05:48 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 24 Sep 2002 05:48:06 +0000 (05:48 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1225 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/templating.py

index 06547caad1623544965be8d7d7b3e5acd0758bde..733150dfca90e892972820e6bbb2903587fa1c5e 100644 (file)
@@ -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
index a2bfc4e46df74a62e393dc2dd6b5e2069304b8fe..8bf2cee7f52e697ba3d80dadcb392b6e8cfbc3b9 100644 (file)
@@ -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():