On Feb 14, 2007, at 5:12 PM, Winterflood, Jonathan wrote:

Hi all,

I'm taking over the developement of a CPS-based product (and having some difficulty as I'm totally new to Zope and CPS)

I've come accross a customisation to the computeId.py script from CPSDefault

The modification replaces the 'compute_from' argument to 'generateId' with '00000000001', with the intention on generating only numerical id's Is this the correct use, or are there any better ways? (it seems a bit like a hack to me...)
It is indeed some kind of a hack: generateId is suppose to provide disambiguation within the given container. If you're really new to Zope, I should maybe point out that this notion of id is by no means global.

The fact that it uses numbers for that purpose is coincidental (it's not likely to change soon).
I've been unable to find documentation on this , is there anywhere you could point me to?
A cleaner way would be to implement you own logic using container.hasObject() to check prior existence.



Thanks,
Jonathan

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

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

---------
Georges Racinet,   Nuxeo SAS
Open Source Enterprise Content Management (ECM)
Web: http://www.nuxeo.com/ and http://www.nuxeo.org/ - Tel: +33 1 40 33 79 87



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

Reply via email to