root/CPS3/examples/MyProject/trunk/README.txt

Revision 46704, 3.7 kB (checked in by ogrisel, 3 years ago)

cosmit

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 MyProject
2 =========
3
4 This directory and its subdirectories are an add-on `Product` for Nuxeo
5 CPS, providing an example of how to customize the settings of a default CPS 3.4
6 portal.
7
8 To illustrate how a CPS portal can get customized, the following sample
9 components are provided:
10
11 - a new widget type to edit and display vogon content
12 - two new document types: VogonPoem and VogonPoemCollection with their
13   respective workflows
14 - a new portlet that displays random Vogon poetry.
15 - a new tool `portal_vogon` that is used by the portlet to generate or grab
16   Vogon poetry from an external source at:
17   http://wellstyled.com/tools/dummy-cz/vogon.php
18 - a new CPSSkins theme with a gimp mock-up that was used to build it
19
20
21 What is a Vogon?
22 ----------------
23
24 Vogons are an alien species well-known for it's poetry:
25 http://en.wikipedia.org/wiki/Vogon_poetry
26
27 The purpose of this product is to build a portal for the Vogon community to
28 produce and publish premium Vogon poetry.
29
30 Test it!
31 --------
32
33 To test this product on a CPS 3.4 portal, add it to the `Products` folder
34 of your zope instance, restart Zope, create a brand new CPS instance for test
35 purpose, go into the `portal_setup` tool in the ZMI, select the `MyProject`
36 profile in the `Properties` tab and finally import all steps on the `Import`
37 tab.
38
39 Read the source!
40 ----------------
41
42 This product aims at being as pedagogical as possible. Python source code files
43 try to get extensively documented to explain what they do and why they do it
44 that way.
45
46 They also are other `README.txt` files scattered in the subfolders of this
47 product: please consult them.
48
49 If anything remains unclear, please fell free to ask the cps-users mailing list
50 after having googled a bit for existing answers to your questions.
51
52 There is also a handy gmane based search engine to easily dig the mailing list
53 archives:
54
55   http://www.cps-project.org/sections/documentation
56
57 You can also access the per-component documentation here (warning: some of this
58 might be outdated or incomplete):
59
60   http://www.cps-project.org/sections/documentation/cps-dev-center
61
62 Content of this product
63 -----------------------
64
65 - doc/
66
67   Instructions to help you build your own customization product for CPS.
68
69 - __init__.py
70
71   python initialization of the product (registers the GenericStup profiles
72   and the new widget for the product).
73
74 - configure.zcml
75   Zope3-like initialization of the product (thanks to Five)
76
77 - widgets.py
78
79   python code that define our new widget types behavior.
80
81 - tool.py
82
83   python code for our poetry generator system.
84
85 - skins/
86
87   hold python scripts, page templates, images and CSS files that are used by
88   other components. These files can then be easily accessed thanks to the
89   `portal_skins` tool defined in the CMFCore product.
90   Please see http://www.zope.org/Products/CMF/docs/devel/writing_skins/view for
91   more details on the CMF skins machinery.
92
93 - i18n/
94
95   hold the message translations for the i18n of UI
96
97 - tests/
98
99   gather the suite of automated tests to check the validity of the code in
100   written in this products
101
102 - profiles/default/
103
104   hold the XML files for the GenericSetup configuration of the previous
105   components + custom documents schemas, layout, types, workflows, and the
106   CPSSkins theme.
107
108   To get more info on how to use GenericSetup please refer to this blog:
109
110     http://blogs.nuxeo.com/sections/blogs/florent_guillaume/2006_01_24_genericsetup-for-cps-cmf
111
112 - exportimport.py
113
114   hosts the XML adapter that handles the GenericSetup support for the vogon tool
115   defined in tool.py
116
117 - gimp/
118
119   some gimp files used to design the CPSSkins theme of the product. These files
120   are not actually used by the product, they are only provided for reference.
121   The actual theme data is located in the profile/default/ folder with the
122   remaining configuration files.
123
Note: See TracBrowser for help on using the browser.