[doc] replace code-block with sourcecode
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Tue, 28 Jul 2009 23:49:47 +0200
changeset 2545 f8246ed962f6
parent 2544 282261b26774
child 2546 df456fa1b053
[doc] replace code-block with sourcecode
doc/book/en/development/devcore/vreg.rst
doc/book/en/development/webstdlib/primary.rst
doc/book/en/intro/tutorial/create-cube.rst
doc/book/en/intro/tutorial/maintemplate.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)
 
--- 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"""
--- 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
 
--- 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):