Commit 4815ee45 authored by Ivan Tyagov's avatar Ivan Tyagov Committed by Eteri

Pylint warning fix.

parent db2fb02d
...@@ -39,11 +39,11 @@ class CallableTool(UniqueObject, Folder): ...@@ -39,11 +39,11 @@ class CallableTool(UniqueObject, Folder):
meta_type = 'ERP5 Callable Tool' meta_type = 'ERP5 Callable Tool'
portal_type = 'Callable Tool' portal_type = 'Callable Tool'
def _setOb(self, id, object): def _setOb(self, object_id, obj):
""" """
Update portal_skins cache with the new files. Update portal_skins cache with the new files.
""" """
Folder._setOb(self, id, object) Folder._setOb(self, object_id, obj)
portal_skins = getattr(self, 'portal_skins', None) portal_skins = getattr(self, 'portal_skins', None)
if portal_skins is None: if portal_skins is None:
return return
...@@ -51,4 +51,4 @@ class CallableTool(UniqueObject, Folder): ...@@ -51,4 +51,4 @@ class CallableTool(UniqueObject, Folder):
_updateCacheEntry = getattr(portal_skins.aq_base, '_updateCacheEntry', None) _updateCacheEntry = getattr(portal_skins.aq_base, '_updateCacheEntry', None)
if _updateCacheEntry is None: if _updateCacheEntry is None:
return return
_updateCacheEntry(self.id, id) _updateCacheEntry(self.id, object_id)
\ No newline at end of file \ No newline at end of file
...@@ -43,10 +43,7 @@ ...@@ -43,10 +43,7 @@
<item> <item>
<key> <string>text_content_warning_message</string> </key> <key> <string>text_content_warning_message</string> </key>
<value> <value>
<tuple> <tuple/>
<string>W: 42, 23: Redefining built-in \'object\' (redefined-builtin)</string>
<string>W: 42, 19: Redefining built-in \'id\' (redefined-builtin)</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment