some code-analysis reclamations fixed.
code-analysis OK up to: T100, S100, S101, C815, C812
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user