[Zope3-Users] Object-deleted-events

2008-01-07 Thread Tobias Rodäbel
Hi, I'd like to implement an event to be fired when an InternalPrincipal shall be deleted from a PrincipalFolder. class IObjectShallBeDeletedEvent(IObjectEvent): """Event, when an object will be deleted. """ class ObjectShallBeDeletedEvent(object): """Event, when an o

Re: [Zope3-Users] Object-deleted-events

2008-01-07 Thread Thierry Florac
Le lundi 07 janvier 2008 à 14:30 +0100, Tobias Rodäbel a écrit : > Hi, > > I'd like to implement an event to be fired when an InternalPrincipal > shall be deleted from a PrincipalFolder. > > class IObjectShallBeDeletedEvent(IObjectEvent): > """Event, when an object will be deleted. >

Re: [Zope3-Users] Object-deleted-events

2008-01-07 Thread Tobias Rodäbel
Hi Thierry, On Jan 7, 2008, at 4:44 PM, Thierry Florac wrote: For your use case, the only thing you should do is just to implement a subscriber to IObjectRemovedEvent (defined into zope.app.container.interfaces) which is automatically fired by all "standard" Zope3 containers. Hope this helps,

[Zope3-Users] Vocabulary, unicode

2008-01-07 Thread Katja Süss
SimpleTerm of zope.schema does not allow tokens to be unicode. Why this? ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Vocabulary, unicode

2008-01-07 Thread Adam Groszer
Hallo Katja, I would say that's because tokens are used in the widgets for item identification. Usual business is to utf-8 and base64 encode unicode tokens. Monday, January 7, 2008, 5:35:46 PM, you wrote: KS> SimpleTerm of zope.schema does not allow tokens to be unicode. Why this? KS> __

Re: [Zope3-Users] Vocabulary, unicode

2008-01-07 Thread Martijn Pieters
On Jan 7, 2008 5:35 PM, Katja Süss <[EMAIL PROTECTED]> wrote: > SimpleTerm of zope.schema does not allow tokens to be unicode. Why this? Because tokens need to be round-trippable in browsers, without encountering encoding issues. Tokens are internal values, unique in the set, whatever they may rep