update documentation of cube structure
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 14 Jan 2009 11:23:14 +0100
changeset 403 ffc7dc7d2218
parent 398 cc16ee7d2d86
child 404 867f933eeb89
update documentation of cube structure
doc/book/en/A03a-concepts.en.txt
--- a/doc/book/en/A03a-concepts.en.txt	Tue Jan 13 17:58:58 2009 +0100
+++ b/doc/book/en/A03a-concepts.en.txt	Wed Jan 14 11:23:14 2009 +0100
@@ -385,7 +385,7 @@
 Standard structure for a cube
 `````````````````````````````
 
-A complex cube is structured as follows:
+A cube is structured as follows:
 
 ::
   
@@ -426,7 +426,7 @@
   |
   |-- site_cubicweb.py
   |
-  |-- sobjects.py
+  |-- hooks.py
   |
   |-- test/
   |   |-- data/
@@ -438,7 +438,8 @@
   `-- views.py
 
     
-We can use simple Python module instead of packages, for example: 
+We can use subpackages instead of python modules for ``views.py``, ``entities.py``,
+``schema.py`` or ``hooks.py``. For example, we could have:
 
 ::
   
@@ -446,8 +447,11 @@
   |
   |-- entities.py
   |-- hooks.py
-  \-- views.py
-    
+  `-- views/
+      |-- forms.py
+      |-- primary.py
+      `-- widgets.py
+  
 
 where :