[CPS-devel] autoinc field

Winterflood, Jonathan jonathan.winterflood at capgemini.com
Wed Jul 4 09:41:51 CEST 2007


Hi,

Every object in the ZODB has an id, so you should only need to control the id actually given to them. In CPSDefault, a CPS Document gets it's id from the computeId script, so overriding that might have the desired effect.

Not sure this is the best approach to your problem, though.

Jonathan

-----Message d'origine-----
De : cps-devel-bounces at lists.nuxeo.com [mailto:cps-devel-bounces at lists.nuxeo.com] De la part de danieltellez
Envoyé : mardi 3 juillet 2007 19:06
À : cps-devel at lists.nuxeo.com
Objet : [CPS-devel] autoinc field 

Hello !!

Is there any way to declare an autogenerated "id" in a layout/schema ??
I mean, like an "autoinc" in a mysql field.

thanks in advance.

-- 
Daniel Téllez Sabán. 
Yerbabuena Software. Dpto I+D.
danieltellez at yerbabuena.es
http://www.yerbabuena.es
Tlf/Fax: 902 995 246 Móvil: 615 051 283

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

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.




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