--- a/web/views/autoform.py Thu Sep 29 14:07:37 2011 +0200
+++ b/web/views/autoform.py Thu Sep 29 14:47:04 2011 +0200
@@ -198,6 +198,9 @@
_select_attrs = ('peid', 'rtype', 'role', 'pform', 'etype')
removejs = "removeInlinedEntity('%s', '%s', '%s')"
+ # make pylint happy
+ peid = rtype = role = pform = etype = None
+
def __init__(self, *args, **kwargs):
for attr in self._select_attrs:
# don't pop attributes from kwargs, so the end-up in
@@ -304,6 +307,9 @@
& specified_etype_implements('Any'))
_select_attrs = InlineEntityEditionFormView._select_attrs + ('petype',)
+ # make pylint happy
+ petype = None
+
@property
def removejs(self):
entity = self._entity()
@@ -345,6 +351,7 @@
& specified_etype_implements('Any'))
_select_attrs = InlineEntityCreationFormView._select_attrs + ('card',)
+ card = None # make pylint happy
form = None # no actual form wrapped
def call(self, i18nctx, **kwargs):
@@ -752,6 +759,7 @@
def _generic_relations_field(self):
try:
+ # pylint: disable=E1101
srels_by_cat = self.srelations_by_category('generic', 'add', strict=True)
warn('[3.6] %s: srelations_by_category is deprecated, use uicfg or '
'override editable_relations instead' % classid(self),