components should be visible by default, applmessages components should not be hideable stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 27 May 2009 16:41:15 +0200
branchstable
changeset 1968 d3de0f44b57b
parent 1967 28eed65ce1e6
child 1969 f14f8465269d
components should be visible by default, applmessages components should not be hideable
web/views/basecomponents.py
--- a/web/views/basecomponents.py	Wed May 27 16:36:17 2009 +0200
+++ b/web/views/basecomponents.py	Wed May 27 16:41:15 2009 +0200
@@ -20,7 +20,7 @@
                                       BoxLink)
 
 VISIBLE_PROP_DEF = {
-    _('visible'):  dict(type='Boolean', default=False,
+    _('visible'):  dict(type='Boolean', default=True,
                         help=_('display the component or not')),
     }
 
@@ -125,9 +125,8 @@
     """
     __select__ = yes()
     id = 'applmessages'
-    property_defs = VISIBLE_PROP_DEF
     # don't want user to hide this component using an cwproperty
-    site_wide = True
+    property_defs = {}
 
     def call(self):
         msgs = [msg for msg in (self.req.get_shared_data('sources_error', pop=True),