small cleanups stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 30 Jul 2010 09:52:46 +0200
branchstable
changeset 6038 5c5d819e8e93
parent 6037 1b4ea3ebdf80
child 6042 df9cafb8062c
small cleanups
view.py
web/facet.py
--- a/view.py	Fri Jul 30 09:52:12 2010 +0200
+++ b/view.py	Fri Jul 30 09:52:46 2010 +0200
@@ -335,7 +335,8 @@
         """ return the url of the entity creation form for a given entity type"""
         return self._cw.build_url('add/%s' % etype, **kwargs)
 
-    def field(self, label, value, row=True, show_label=True, w=None, tr=True, table=False):
+    def field(self, label, value, row=True, show_label=True, w=None, tr=True,
+              table=False):
         """read-only field"""
         if w is None:
             w = self.w
--- a/web/facet.py	Fri Jul 30 09:52:12 2010 +0200
+++ b/web/facet.py	Fri Jul 30 09:52:46 2010 +0200
@@ -271,13 +271,14 @@
     __registry__ = 'facets'
     cw_property_defs = {
         _('visible'): dict(type='Boolean', default=True,
-                           help=_('display the box or not')),
+                           help=_('display the facet or not')),
         _('order'):   dict(type='Int', default=99,
-                           help=_('display order of the box')),
+                           help=_('display order of the facet')),
         _('context'): dict(type='String', default='',
                            # None <-> both
                            vocabulary=(_('tablefilter'), _('facetbox'), ''),
-                           help=_('context where this box should be displayed')),
+                           help=_('context where this facet should be displayed, '
+                                  'leave empty for both')),
         }
     visible = True
     context = ''