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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
