[CPS-devel] Creating a document with flexible fields

Ib ibibalias-cps at yahoo.fr
Mon May 8 11:08:12 CEST 2006


  Hi all,
I'm trying to create a flexible document using datamodel of another flexible document. Both have the same type_name.
I use a code like : 
firstDocDataModel = firstDocProxy.getDataModel(firstDocProxy)
SecondDocProxy=createCPSDocument_cb('type_name',firstDocDataModel)

But unfortunatly this doesn't copy me flexible fields in the second document. I think this is becoz their schemas and layouts were not copied as for flexible docs, schemas and layouts are created in the document proxy.

Is there a way to create such a document using the datamodel of another? Thanks by advance!
		
---------------------------------
 Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060508/425509c5/attachment.htm


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.