From 946ff3619067cda88897bdbd0c81ee8610174144 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sat, 28 Aug 2010 19:48:40 +0000 Subject: [PATCH] "W0622 total_comments: Redefining built-in 'object'" added to pylint msg ignores. svn path=/plone.app.discussion/trunk/; revision=39323 --- plone/app/discussion/catalog.py | 2 +- test-plone-4.0.x.cfg | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plone/app/discussion/catalog.py b/plone/app/discussion/catalog.py index 062e91d..00067bb 100644 --- a/plone/app/discussion/catalog.py +++ b/plone/app/discussion/catalog.py @@ -16,7 +16,7 @@ from plone.app.discussion.interfaces import IConversation, IComment from plone.indexer import indexer -MAX_DESCRIPTION=25 +MAX_DESCRIPTION = 25 # Conversation Indexers diff --git a/test-plone-4.0.x.cfg b/test-plone-4.0.x.cfg index 658e132..724b592 100644 --- a/test-plone-4.0.x.cfg +++ b/test-plone-4.0.x.cfg @@ -64,7 +64,7 @@ arguments = [ '--output-format=parseable', '--zope=y', '--reports=y', - '--disable-msg=E0611,F0401,W0232,E1101,C0103,C0111,R0201,W0201,R0911,R0904,F0220,E1103,R0901,E0211,E0213,E1002', + '--disable-msg=E0611,F0401,W0232,E1101,C0103,C0111,R0201,W0201,R0911,R0904,F0220,E1103,R0901,E0211,E0213,E1002,W0622', '--generated-members=objects', ] + sys.argv[1:] @@ -85,6 +85,8 @@ arguments = [ # - Reason: raises an error on zope.interface definitions # E1002 Use super on an old style class # - Reason: super(CommentsViewlet, self).update() raises an error +# W0622 total_comments: Redefining built-in 'object' +# - Reason: top level def function will not work (e.g. for catalog indexers) # ... # See http://pylint-messages.wikidot.com/all-messages for a full list.