On Jul 20, 2006, at 12:48 PM, Alpha Dia wrote:

Thanks a lot, MyProject is very interesting even though i do not
understand everything inside yet :(
Correct me if i am wrong:
1. when i want to create a product that use the features of CPS, it's
better to create an extension, rather than writing codes directly in
CPSDefault?
2. But to create such an extension, i can use an instance of CPS Default
site to build easily new document type, then export the xml files into
my new product?

Yes, you can either export your full configuration as a base profile or extract your specifics and make an extension profile out of them. Making a snapshot and compare it to the CPSDefault base profile or a previous snapshot (check comparison tab in portal_setup) can be quite useful, too.


3. other question : what are python files getCustomDocumentXXX.py in
CPSDocument/skins/cps_document for? can they be used to create new
document types for a new product? if yes do you recommend it?

These are leftovers from the installer system used in CPS < 3.4.0. Just ignore them.


Sorry for bothering and thank you for answering.

Olivier Grisel a écrit :
Alpha Dia a écrit :

Thanks for these answers!
If i create new document types (type,layout,schema), and i export them as XML files and put them to right place in profiles directory, will i
have these type of document if i instanciate a new cps site?


Yes if the "right place" is registered as a profile directory in the
__init__.py file of your product.

You can have a look at the sample configuration product MyProject for a example on how to build your own profile in you own integration product.

It is available through svn (no package yet cause it's not complete yet):

$ cd Products
$ svn co https://svn.nuxeo.org/pub/CPS3/examples/MyProject/trunk MyProject

Do not forget to start by reading this:

http://svn.nuxeo.org/trac/pub/browser/CPS3/examples/MyProject/ trunk/README.txt



_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

---------
Georges Racinet                        Nuxeo SAS
[EMAIL PROTECTED]                http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73


_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to