# HG changeset patch # User Nicolas Chauvat # Date 1249075339 -7200 # Node ID 351f1fcfa53c59e01f8106c648855d4250272d3c # Parent 5e19c2bb370e60d8b06e08b551c823b348660d17 F [doc] mark code block as python source in cookbook diff -r 5e19c2bb370e -r 351f1fcfa53c 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