RE: autoinc field

"Winterflood, Jonathan" <[email protected]> Wed, 4 Jul 2007 09:41:51 +0200
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <9E629A3098F91342B5DDF58BC066A11823218C@CORPMAIL32.corp.capgemini.com>
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 : [email protected] [mailto:[email protected]] De la part de danieltellez
Envoyé : mardi 3 juillet 2007 19:06
À : [email protected]
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.
[email protected]
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.

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