equal
deleted
inserted
replaced
12 |
12 |
13 Create the directory to hold the code of your cube. The most important files that will be useful to customize your newly created cube are: |
13 Create the directory to hold the code of your cube. The most important files that will be useful to customize your newly created cube are: |
14 * schema.py: contains the data model |
14 * schema.py: contains the data model |
15 * views.py: contains your custom views |
15 * views.py: contains your custom views |
16 * entities.py: contains XXX |
16 * entities.py: contains XXX |
|
17 |
17 The detailed structure of the code directory is described in :ref:`cubelayout`. |
18 The detailed structure of the code directory is described in :ref:`cubelayout`. |
18 |
19 |
19 2. :ref:`DefineDataModel` |
20 2. :ref:`DefineDataModel` |
20 |
21 |
21 Define the data model of your application. |
22 Define the data model of your application. |
387 self.w(u'<image src="http://www.cubicweb.org/doc/en/_static/cubicweb.png"/>') |
388 self.w(u'<image src="http://www.cubicweb.org/doc/en/_static/cubicweb.png"/>') |
388 super(BlogEntryPrimaryView, self).render_entity_title(entity) |
389 super(BlogEntryPrimaryView, self).render_entity_title(entity) |
389 |
390 |
390 Then each blog entry whose title contains 'CW' is shown with the CubicWeb logo in front of it. |
391 Then each blog entry whose title contains 'CW' is shown with the CubicWeb logo in front of it. |
391 |
392 |
392 .. _UpdatingSchemaAndSynchronisingInstance |
393 .. _UpdatingSchemaAndSynchronisingInstance: |
393 |
394 |
394 Updating the schema and synchronising the instance |
395 Updating the schema and synchronising the instance |
395 -------------------------------------------------- |
396 -------------------------------------------------- |
396 |
397 |
397 While developping your cube, you may want to update your data model. Let's say you |
398 While developping your cube, you may want to update your data model. Let's say you |