[ui props] drop htmlclass as a persistent property, this is definitly useless/unusable stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 26 Aug 2009 10:18:49 +0200
branchstable
changeset 3010 684a0c546774
parent 3009 3deb0fa95761
child 3011 657dfe374b08
[ui props] drop htmlclass as a persistent property, this is definitly useless/unusable
view.py
web/component.py
--- a/view.py	Wed Aug 26 10:18:07 2009 +0200
+++ b/view.py	Wed Aug 26 10:18:49 2009 +0200
@@ -468,8 +468,10 @@
     __select__ = yes()
     property_defs = {}
 
+    # XXX huummm, much probably useless
+    htmlclass = 'mainRelated'
     def div_class(self):
-        return '%s %s' % (self.propval('htmlclass'), self.id)
-
+        return '%s %s' % (self.htmlclass, self.id)
+    # XXX a generic '%s%s' % (self.id, self.__registry__.capitalize()) would probably be nicer
     def div_id(self):
         return '%sComponent' % self.id
--- a/web/component.py	Wed Aug 26 10:18:07 2009 +0200
+++ b/web/component.py	Wed Aug 26 10:18:49 2009 +0200
@@ -45,8 +45,6 @@
                                         _('navcontenttop'), _('navcontentbottom')),
                             #vocabulary=(_('header'), _('incontext'), _('footer')),
                             help=_('context where this component should be displayed')),
-        _('htmlclass'):dict(type='String', default='mainRelated',
-                            help=_('html class of the component')),
     }
 
     context = 'navcontentbottom' # 'footer' | 'header' | 'incontext'