--- a/web/component.py Tue Sep 27 16:04:30 2011 +0200
+++ b/web/component.py Wed Sep 28 09:27:42 2011 +0200
@@ -321,7 +321,7 @@
def wview(__vid, rset=None, __fallback_vid=None, **kwargs):
self._cw.view(__vid, rset, __fallback_vid, w=self.w, **kwargs)
self.wview = wview
- self.call(**kwargs)
+ self.call(**kwargs) # pylint: disable=E1101
return
getlayout = self._cw.vreg['components'].select
layout = getlayout('layout', self._cw, **self.layout_select_args())
@@ -539,6 +539,9 @@
subclasses should define at least id, rtype and target class attributes.
"""
+ # to be defined in concrete classes
+ rtype = None
+
def render_title(self, w):
w(display_name(self._cw, self.rtype, role(self),
context=self.entity.__regid__))
@@ -566,7 +569,9 @@
added_msg = None
removed_msg = None
- # class attributes below *must* be set in concret classes (additionaly to
+ # to be defined in concrete classes
+ rtype = role = target_etype = None
+ # class attributes below *must* be set in concrete classes (additionaly to
# rtype / role [/ target_etype]. They should correspond to js_* methods on
# the json controller
@@ -706,6 +711,8 @@
__select__ = EntityVComponent.__select__ & partial_has_related_entities()
vid = 'list'
+ # to be defined in concrete classes
+ rtype = title = None
def rql(self):
"""override this method if you want to use a custom rql query"""