Updated docstrings
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Jun 2017 16:26:33 +0200
changeset 96 a543685e0ca1
parent 95 f6cc362670a6
child 97 02671458ec76
Updated docstrings
src/pyams_utils/data.py
--- a/src/pyams_utils/data.py	Mon Jun 19 16:24:22 2017 +0200
+++ b/src/pyams_utils/data.py	Mon Jun 19 16:26:33 2017 +0200
@@ -74,6 +74,7 @@
     This TALES extension is to be used in Chameleon templates to define a custom data attribute
     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>
     """
 
@@ -93,6 +94,7 @@
     This TALES extension can be used to get a request data, previously stored in the request via an annotation.
     For example::
 
+    .. code-block:: html
         <div tal:content="extension:request_data('my.annotation.key')">...</div>
     """
 
@@ -108,6 +110,7 @@
     This TALES extension can be used to get a request data, previously stored in the request via an annotation.
     For example::
 
+    .. code-block:: html
         <div tal:content="extension:request_data('my.annotation.key')">...</div>
     """