[Zope3-Users] unique integer id as a Token for ITerms ?

2007-02-21 Thread Christophe Combelles

Hello,

When using a vocabulary, one needs to generate a token for each term, then to be 
able to get the value again from the token. (getTerm/getValue needed by ITerms)


Is there a problem using the Unique Integer Id generated by the IntIds utility 
directly as the token?



thanks,
Christophe
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] unique integer id as a Token for ITerms ?

2007-02-21 Thread Gary Poster


On Feb 21, 2007, at 1:23 PM, Christophe Combelles wrote:


Hello,

When using a vocabulary, one needs to generate a token for each  
term, then to be able to get the value again from the token.  
(getTerm/getValue needed by ITerms)


Is there a problem using the Unique Integer Id generated by the  
IntIds utility directly as the token?


not at all, if the vocabulary item is appropriate for an intid  
(usually, but not necessarily, this means a persistent object)


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users