web/views/tabs.py
branchtls-sprint
changeset 728 a95b284150d1
parent 692 800592b8d39b
child 771 ae1b0081ff30
--- a/web/views/tabs.py	Tue Feb 17 23:46:48 2009 +0100
+++ b/web/views/tabs.py	Tue Feb 17 23:47:23 2009 +0100
@@ -132,12 +132,10 @@
     class ProjectScreenshotsView(EntityRelationView):
         '''display project's screenshots'''
         id = title = _('projectscreenshots')
-        __selectors__ = implements('Project')
+        __select__ = implements('Project')
         rtype = 'screenshot'
         target = 'object'
         vid = 'gallery'
-        __selectors__ = EntityRelationView.__selectors__ + (one_line_rset,)
-
 
     This is the view we want to have in a tab, only if there is something to show.
     Then, just define as below, and declare this being the tab content :
@@ -145,7 +143,7 @@
     class ProjectScreenshotTab(DataDependantTab, ProjectScreenshotsView):
         id = 'screenshots_tab'
     """
-    __selectors__ = EntityView.__selectors__ + (has_related_entities,)
+    __select__ = EntityView.__select__ & (has_related_entities,)
     vid = 'list'
 
     def cell_call(self, row, col):