[Zope3-dev] Re: Status of homefolders?

Joachim Werner zope at iuveno-net.de
Thu Dec 9 09:52:01 EST 2004


Hi!

Stephan Richter schrieb:
> Zope 3 has a general annotations mechanism. Principal data is stored in 
> principal annotations. You can put whatever data you like in there. Also, 
> since a principal is created every time you authenticate, you pull up his/her 
> relevant data by listening to the PrincipalCreatedEvent. 

> Zope poses no restrictions on the data you can store and where to store it. It 
> only requires a principal to have an id and an optional title and 
> description. Not even the login information is directly handled by the 
> principal.

How exactly does Zope X3 handle cleaning up after an annotated object is 
deleted?

Here is an example from Zope 2:

In a CMS have all user objects stored in a centralized acl_users folder, 
but all the local roles are stored with the objects the roles are set on.

Now when I delete a user I have to walk the tree and clean up all the 
local roles entries (plain Zope just doesn't do it, but that's a bug IMO).

The problem is that this can get really slow and even fail completely 
due to read errors on large, busy sites (especially if ZEO is involved, 
too).

How would I do that in Zope X3?

The local roles are just an example ...

Cheers

Joachim


More information about the Zope3-dev mailing list