--- a/src/pyams_utils/attr.py Wed Nov 20 19:26:23 2019 +0100
+++ b/src/pyams_utils/attr.py Fri Nov 22 18:51:37 2019 +0100
@@ -17,8 +17,6 @@
This adapter is actually used to get access to 'file' attributes in PyAMS_file package.
"""
-__docformat__ = 'restructuredtext'
-
from pyramid.exceptions import NotFound
from zope.interface import Interface
from zope.traversing.interfaces import ITraversable
@@ -26,6 +24,9 @@
from pyams_utils.adapter import ContextAdapter, adapter_config
+__docformat__ = 'restructuredtext'
+
+
@adapter_config(name='attr', context=Interface, provides=ITraversable)
class AttributeTraverser(ContextAdapter):
"""++attr++ namespace traverser
@@ -38,7 +39,8 @@
Where *name* is the name of the requested attribute.
"""
- def traverse(self, name, furtherpath=None):
+ def traverse(self, name, furtherpath=None): # pylint: disable=unused-argument
+ """Traverse from current context to given attribute"""
if '.' in name:
name = name.split('.', 1)
try: