[Zope-dev] Re: [Zope] [PATCH] to Zope's Management Interface

Steve Alexander steve@cat-box.net
Mon, 29 Apr 2002 14:56:15 +0100


Jerome Alet wrote:
> On Mon, 29 Apr 2002, Steve Alexander wrote:
> 
> 
>>You should certainly not use the App.Hotfixes interface for this.
>>
>>The App.Hotfixes interface is for registering dynamic patches that will 
>>become part of Zope in a future release, at which point the dynamic 
>>patch can be removed.
> 
> 
> ok, so if I understand correctly all I have to do to make a not-hotfix
> product is just do an unconditionnal assignment of my new complete
> main.dtml file to ObjectManager.ObjectManager.manage_main in my product's
> __init__.py file ?
> 
> am I right ?


I'm not sure whether that will be sufficient.

If the ObjectManager class has already been initialized, then its 
security declarations will have been applied to the preexisting main 
DTMLFile object.

In which case, you'll have to re-initialise the class, or process your 
own security declarations, or something like that.

Then again, it might just work.

Try it and see.

--
Steve Alexander