[Python-checkins] r81172 - tracker/roundup-src/roundup/cgi/templating.py
martin.v.loewis
python-checkins at python.org
Fri May 14 19:31:19 CEST 2010
Author: martin.v.loewis
Date: Fri May 14 19:31:19 2010
New Revision: 81172
Log:
Ban grouping or sorting on multilink properties.
Modified:
tracker/roundup-src/roundup/cgi/templating.py
Modified: tracker/roundup-src/roundup/cgi/templating.py
==============================================================================
--- tracker/roundup-src/roundup/cgi/templating.py (original)
+++ tracker/roundup-src/roundup/cgi/templating.py Fri May 14 19:31:19 2010
@@ -2386,6 +2386,8 @@
dir, name = '+', f
if cls and cls.get_transitive_prop(name) is None:
self.client.error_message.append("Unknown property "+name)
+ elif cls and isinstance(cls.get_transitive_prop(name), hyperdb.Multilink):
+ self.client.error_message.append("Cannot group or sort by "+name)
else:
var.append((dir, name))
More information about the Python-checkins
mailing list