# HG changeset patch # User Nicolas Chauvat # Date 1248817787 -7200 # Node ID f8246ed962f64c2b618983140cdd68b8ef5f845a # Parent 282261b2677453c68fb812759a278ee1e4f2b27d [doc] replace code-block with sourcecode diff -r 282261b26774 -r f8246ed962f6 doc/book/en/development/devcore/vreg.rst --- a/doc/book/en/development/devcore/vreg.rst Tue Jul 28 23:48:19 2009 +0200 +++ b/doc/book/en/development/devcore/vreg.rst Tue Jul 28 23:49:47 2009 +0200 @@ -27,7 +27,7 @@ Examples: -.. code-block:: python +.. sourcecode:: python # web/views/basecomponents.py def registration_callback(vreg): @@ -45,7 +45,7 @@ API d'enregistrement des objets ``````````````````````````````` -.. code-block:: python +.. sourcecode:: python register(obj, registryname=None, oid=None, clear=False) diff -r 282261b26774 -r f8246ed962f6 doc/book/en/development/webstdlib/primary.rst --- a/doc/book/en/development/webstdlib/primary.rst Tue Jul 28 23:48:19 2009 +0200 +++ b/doc/book/en/development/webstdlib/primary.rst Tue Jul 28 23:49:47 2009 +0200 @@ -15,7 +15,7 @@ Let's have a quick look at the EntityView ``PrimaryView`` as well as its rendering method -.. code-block:: python +.. sourcecode:: python class PrimaryView(EntityView): """the full view of an non final entity""" diff -r 282261b26774 -r f8246ed962f6 doc/book/en/intro/tutorial/create-cube.rst --- a/doc/book/en/intro/tutorial/create-cube.rst Tue Jul 28 23:48:19 2009 +0200 +++ b/doc/book/en/intro/tutorial/create-cube.rst Tue Jul 28 23:49:47 2009 +0200 @@ -222,7 +222,7 @@ To do so, please apply the following changes: -.. code-block:: python +.. sourcecode:: python from cubicweb.web.views import baseviews diff -r 282261b26774 -r f8246ed962f6 doc/book/en/intro/tutorial/maintemplate.rst --- a/doc/book/en/intro/tutorial/maintemplate.rst Tue Jul 28 23:48:19 2009 +0200 +++ b/doc/book/en/intro/tutorial/maintemplate.rst Tue Jul 28 23:49:47 2009 +0200 @@ -44,7 +44,7 @@ First, to remove the login menu, we just need to comment out the display of the login graphic component such as follows: -.. code-block :: python +.. sourcecode:: python class MyBlogHTMLPageHeader(HTMLPageHeader):