14 Dec
2007
14 Dec
'07
9:04 p.m.
Fred Drake a écrit :
On Dec 14, 2007 3:48 PM, Marius Gedminas <mgedmin@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