[ui props] drop htmlclass as a persistent property, this is definitly useless/unusable
--- 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'