Updated docstrings
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Jun 2017 17:29:46 +0200
changeset 97 02671458ec76
parent 96 a543685e0ca1
child 98 2bc1e87c3155
Updated docstrings
src/pyams_utils/context.py
src/pyams_utils/data.py
--- a/src/pyams_utils/context.py	Mon Jun 19 16:26:33 2017 +0200
+++ b/src/pyams_utils/context.py	Mon Jun 19 17:29:46 2017 +0200
@@ -26,6 +26,8 @@
     This selector can be used as a subscriber predicate to define
     an interface that the context must support for the event to be applied::
 
+    .. code-block:: python
+
         from pyams_utils.interfaces.site import ISiteRoot
 
         @subscriber(IObjectModifiedEvent, context_selector=ISiteRoot)
--- a/src/pyams_utils/data.py	Mon Jun 19 16:26:33 2017 +0200
+++ b/src/pyams_utils/data.py	Mon Jun 19 17:29:46 2017 +0200
@@ -75,6 +75,7 @@
     which stores all object data (see `pyams_utils.interfaces.data.IObjectData` interface), like this::
 
     .. code-block:: html
+
         <div tal:attributes="data-ams-data extension:object_data(context)">...</div>
     """
 
@@ -95,6 +96,7 @@
     For example::
 
     .. code-block:: html
+
         <div tal:content="extension:request_data('my.annotation.key')">...</div>
     """
 
@@ -111,6 +113,7 @@
     For example::
 
     .. code-block:: html
+
         <div tal:content="extension:request_data('my.annotation.key')">...</div>
     """