src/pyams_utils/attr.py
changeset 72 9049384a2bd4
parent 1 3f89629b9e54
child 292 b338586588ad
--- a/src/pyams_utils/attr.py	Tue Nov 15 10:43:55 2016 +0100
+++ b/src/pyams_utils/attr.py	Fri Nov 18 15:28:54 2016 +0100
@@ -26,7 +26,15 @@
 
 @adapter_config(name='attr', context=Interface, provides=ITraversable)
 class AttributeTraverser(ContextAdapter):
-    """++attr++ namespace traverser"""
+    """++attr++ namespace traverser
+
+    This custom traversing adapter can be used to access an object attribute directly from
+    an URL by using a path like this::
+
+    /path/to/object/++attr++name
+
+    Whare *name* is the name of the requested attribute
+    """
 
     def traverse(self, name, furtherpath=None):
         try: