F [doc] mark code block as python source in cookbook
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 31 Jul 2009 23:22:19 +0200
changeset 2614 351f1fcfa53c
parent 2613 5e19c2bb370e
child 2615 1ea41b7c0836
F [doc] mark code block as python source in cookbook
doc/book/en/annexes/cookbook.rst
--- a/doc/book/en/annexes/cookbook.rst	Fri Jul 31 22:37:28 2009 +0200
+++ b/doc/book/en/annexes/cookbook.rst	Fri Jul 31 23:22:19 2009 +0200
@@ -12,8 +12,9 @@
   [XXX distribute this script with cubicweb instead]
 
   Here is a very useful script which enables you to import LDAP users
-  into your *CubicWeb* instance by running the following: ::
+  into your *CubicWeb* instance by running the following:
 
+.. sourcecode:: python
 
     import os
     import pwd
@@ -69,7 +70,9 @@
 
   The following script aims at loading data within a script assuming pyro-nsd is
   running and your instance is configured with ``pyro-server=yes``, otherwise
-  you would not be able to use dbapi. ::
+  you would not be able to use dbapi.
+
+.. sourcecode:: python
 
     from cubicweb import dbapi