# HG changeset patch # User Arthur Lutz # Date 1228242338 -3600 # Node ID c7d6a465b951f02564c49994ffd800eab5f80142 # Parent c5ff97312b8a11ba7a677d669729532bd31ea32d updates done to documentation after following instructions for a new cube diff -r c5ff97312b8a -r c7d6a465b951 doc/book/en/B022-schema-definition.en.txt --- a/doc/book/en/B022-schema-definition.en.txt Tue Dec 02 11:40:04 2008 +0100 +++ b/doc/book/en/B022-schema-definition.en.txt Tue Dec 02 19:25:38 2008 +0100 @@ -370,3 +370,17 @@ To compensate this problem, it is usually necessary, for such case, to use an action that reflects the schema permissions but which enables to check properly the permissions so that it would show up if necessary. + + +Updating your application with your new schema +`````````````````````````````````````````````` + +You have to get a shell on your application :: + + cubicweb-ctl shell moninstance + +and type :: + + add_entity_type('Personne') + +And restart your application! diff -r c5ff97312b8a -r c7d6a465b951 doc/book/fr/03-02-create-instance.fr.txt --- a/doc/book/fr/03-02-create-instance.fr.txt Tue Dec 02 11:40:04 2008 +0100 +++ b/doc/book/fr/03-02-create-instance.fr.txt Tue Dec 02 19:25:38 2008 +0100 @@ -48,8 +48,8 @@ cubicweb-ctl newtemplate moncube # répondre aux questions - hg init moncube cd moncube + hg init hg add . hg ci @@ -65,6 +65,10 @@ effectivement utilisables lors de la création de la base (import_erschema('Moncomposant') ne fonctionne pas sinon). +FIXME - need example code :: + + __use__ = ('blog', 'file') + Création d'une instance de développement ======================================== diff -r c5ff97312b8a -r c7d6a465b951 doc/book/fr/04-02-schema-definition.fr.txt --- a/doc/book/fr/04-02-schema-definition.fr.txt Tue Dec 02 11:40:04 2008 +0100 +++ b/doc/book/fr/04-02-schema-definition.fr.txt Tue Dec 02 19:25:38 2008 +0100 @@ -346,3 +346,16 @@ nécessaire dans tel cas d'utiliser une action reflétant les droits du schéma mais permettant de faire la vérification correctement afin qu'elle apparaisse bien le cas échéant. + +Mise à jour du schema +````````````````````` + +Il faut ensuite lancer son cubicweb en mode shell :: + + cubicweb-ctl shell moninstance + +Et taper :: + + add_entity_type('Personne') + +Et on relance l'application!