[CPS-devel] CPSDocument 'create_do' alias

Julien Anguenot ja at nuxeo.com
Fri Feb 17 20:39:38 CET 2006


Hi there,

I just checked in a modification, in rev [32984], that might interest
some of you.

You can now use a 'create_do' alias on you document type, CPSDocument
based, which corresponds, by default, to the 'cpsdocument_create_do'
Python script.

Example within your definition.xml for a given content type:

 <alias from="create_do" to="cpsdocument_create_do"/>

can be replaced by :

  <alias from="create_do" to="mytype_create_do"/>

Using this trick is pretty handy when your content type need custom
behavior at creation time. It avoids you having to override templates
and python scripts from the CPSDocument codebase.

We are certainly going to use more aliases in the future for CPSDocument
actions. (view/create/etc...)

Cheers,

	J.


-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060217/1765e2a3/signature.pgp


More information about the cps-devel mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.