some code-analysis reclamations fixed.

code-analysis OK up to: T100, S100, S101, C815, C812
This commit is contained in:
Katja Süss
2017-07-29 11:35:15 +02:00
parent 100690ccdf
commit b08852baa0
5 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -13,8 +13,8 @@ from zope.traversing.interfaces import ITraversable
from zope.traversing.interfaces import TraversalError
@adapter(Interface, IBrowserRequest)
@implementer(ITraversable)
@adapter(Interface, IBrowserRequest)
class ConversationNamespace(object):
"""Allow traversal into a conversation via a ++conversation++name
namespace. The name is the name of an adapter from context to
+1 -1
View File
@@ -32,8 +32,8 @@ except ImportError:
pass
@adapter(Interface, IDiscussionLayer, Interface, IField, Interface)
@implementer(IValidator)
@adapter(Interface, IDiscussionLayer, Interface, IField, Interface)
class CaptchaValidator(validator.SimpleFieldValidator):
# Object, Request, Form, Field, Widget,
# We adapt the CaptchaValidator class to all form fields (IField)