diff roundup/cgi/templating.py @ 4051:047402c4ec9b

Handle transitive properties.
author Stefan Seefeld <stefan@seefeld.name>
date Thu, 19 Feb 2009 21:46:12 +0000
parents 32965347a663
children f8ba421ee4b0
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Feb 19 20:03:10 2009 +0000
+++ b/roundup/cgi/templating.py	Thu Feb 19 21:46:12 2009 +0000
@@ -2429,10 +2429,10 @@
         if filter and self.filter:
             add(sc+'filter', ','.join(self.filter))
         if self.classname and filterspec:
-            props = self.client.db.getclass(self.classname).getprops()
+            cls = self.client.db.getclass(self.classname)
             for k,v in self.filterspec.items():
                 if type(v) == type([]):
-                    if isinstance(props[k], hyperdb.String):
+                    if isinstance(cls.get_transitive_prop(k), hyperdb.String):
                         add(k, ' '.join(v))
                     else:
                         add(k, ','.join(v))

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