[Zope3-checkins] SVN: Zope3/trunk/ Added support for removing a principal from a principal registry. We're using this to update principal info (via replace) for a management tool that lets an admin change his or her login/password without reprocessing

Garrett Smith garrett at mojave-corp.com
Fri Mar 11 19:40:56 EST 2005


Stephan Richter wrote:
> removing a principal from a principal registry. We're using this to
> update principal info (via replace) for a management tool that lets an
> admin change his or her login/password without reprocessing
> 
> 
> On Friday 11 March 2005 12:43, Garrett Smith wrote:
>>   Added support for removing a principal from a principal registry.
>> We're using this to update principal info (via replace) for a
>> management tool that lets an admin change his or her login/password
>> without reprocessing ZCML.
> 
> I think this change needs to be discussed more. Global registries,
> like the principal registry, should not support any modification and
> deletion in their API! Only ZCML can setup global components.

I think you'll find pressure to change this policy if Zope is used as an
embedded server. If I'm the only one who ever needs this, I suppose I'll
just hack the private attributes of the registry.

> You should use a local principal registry such as PAU instead.

I do for all other principals. There's one bootstap admin account that
is used to setup the site. The account is managed from within a GUI
application that also controls Zope. I don't want to force the user to
restart the process to do this.

 -- Garrett


More information about the Zope3-Checkins mailing list