[Zope-dev] new FAQ entry: please review before I add it
Christophe Combelles
ccomb at free.fr
Fri Dec 14 16:04:40 EST 2007
Fred Drake a écrit :
> On Dec 14, 2007 3:48 PM, Marius Gedminas <mgedmin at b4net.lt> wrote:
>> Or maybe reuse getInformationFromEvent from
>> zope.app.appsetup.bootstrap, although it smells like an internal
>> function.
>
> It does, but you wouldn't be the first to use it outside it's module. :-)
Actually, wouldn't it be nice (and logical) to transmit the root folder along
with the event?
It would be easier:
def CreateMyContainer(event):
root = event.root
(...)
Though it would require to add an attribute to IDatabaseOpenedWithRootEvent
But that wouldn't hurt a lot...
>
>
> -Fred
>
More information about the Zope-Dev
mailing list