[boxes] PossibleViewsBox is contextual, StartupViewsBox isn't stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 03 Nov 2010 17:17:56 +0100
branchstable
changeset 6668 d651bf5a66a9
parent 6667 e2665842fe22
child 6669 e4532c6acf34
[boxes] PossibleViewsBox is contextual, StartupViewsBox isn't
web/views/boxes.py
--- a/web/views/boxes.py	Wed Nov 03 16:40:10 2010 +0100
+++ b/web/views/boxes.py	Wed Nov 03 17:17:56 2010 +0100
@@ -170,9 +170,10 @@
     """display a box containing links to all possible views"""
     __regid__ = 'possible_views_box'
 
-    visible = False
+    contextual = True
     title = _('possible views')
     order = 10
+    visible = False # disabled by default
 
     def init_rendering(self):
         self.views = [v for v in self._cw.vreg['views'].possible_views(self._cw,
@@ -195,9 +196,10 @@
     """display a box containing links to all startup views"""
     __regid__ = 'startup_views_box'
 
-    visible = False # disabled by default
+    contextual = False
     title = _('startup views')
     order = 70
+    visible = False # disabled by default
 
     def init_rendering(self):
         self.views = [v for v in self._cw.vreg['views'].possible_views(self._cw)