doc/book/en/intro/tutorial/create-cube.rst
changeset 4143 e6d936eef7aa
parent 3293 69c0ba095536
child 4431 e597e0ca67cd
--- a/doc/book/en/intro/tutorial/create-cube.rst	Fri Dec 18 15:06:55 2009 +0100
+++ b/doc/book/en/intro/tutorial/create-cube.rst	Fri Dec 18 15:07:26 2009 +0100
@@ -28,6 +28,8 @@
 
 ::
 
+  from yams.buildobjs import EntityType, String, SubjectRelation, Date
+
   class Blog(EntityType):
     title = String(maxsize=50, required=True)
     description = String()
@@ -38,6 +40,8 @@
     content = String(required=True, fulltextindexed=True)
     entry_of = SubjectRelation('Blog', cardinality='?*')
 
+The first step is the import of the EntityType (generic class for entityĆ  and 
+attributes that will be used in both Blog and BlogEntry entities. 
 
 A Blog has a title and a description. The title is a string that is
 required and must be less than 50 characters.  The
@@ -64,8 +68,8 @@
 
   cubicweb-ctl create blog blogdemo
 
+This command will create the corresponding database and initialize it.
 
-This command will create the corresponding database and initialize it.
 
 Welcome to your web instance
 -------------------------------