--- a/web/views/editviews.py Tue Jan 26 20:29:52 2010 +0100
+++ b/web/views/editviews.py Tue Jan 26 20:30:35 2010 +0100
@@ -66,8 +66,8 @@
# since the latter is mainly there to select relevant items in the combo
# box, it doesn't give interesting result in this context
rql, args = entity.unrelated_rql(rtype, etype, role,
- ordermethod='fetch_order',
- vocabconstraints=False)
+ ordermethod='fetch_order',
+ vocabconstraints=False)
rset = self._cw.execute(rql, args, tuple(args))
return rset, 'list', "search-associate-content", True
@@ -138,7 +138,6 @@
execute(rql, {'x': subj, 'y': obj}, ('x', 'y'))
-
class GenericRelationsWidget(fw.FieldWidget):
def render(self, form, field, renderer):
@@ -347,6 +346,7 @@
xml_escape(url), _('Search for'), eschema.display_name(self._cw))))
return [o for l, o in sorted(options)]
+ # XXX move this out
def _get_basket_options(self, entity, rschema, role, targettypes):
options = []
rtype = rschema.type