web/views/baseviews.py
branchtls-sprint
changeset 742 99115e029dca
parent 647 49bb57a9606b
child 756 2c3981830408
child 758 0c0dfd33a76d
--- a/web/views/baseviews.py	Wed Feb 18 00:48:24 2009 +0100
+++ b/web/views/baseviews.py	Wed Feb 18 01:21:25 2009 +0100
@@ -43,7 +43,7 @@
 
 class NoResultView(View):
     """default view when no result has been found"""
-    __selectors__ = (empty_rset,)
+    __select__ = empty_rset()
     id = 'noresult'
     
     def call(self, **kwargs):
@@ -790,8 +790,8 @@
     to search for something to link to the edited eid
     """
     id = 'search-associate'
-    __selectors__ = (one_line_rset, match_search_state('linksearch'),
-                     non_final_entity())
+    __select__ = (one_line_rset() & match_search_state('linksearch')
+                  & non_final_entity())
     
     title = _('search for association')
 
@@ -848,8 +848,7 @@
     """
     id = 'editrelation'
 
-    __selectors__ = (match_form_params,)
-    form_params = ('rtype',)
+    __select__ = match_form_params('rtype')
     
     # TODO: inlineview, multiple edit, (widget view ?)
     def cell_call(self, row, col, rtype=None, role='subject', targettype=None,