Fred Drake a écrit :
On Dec 14, 2007 3:48 PM, Marius Gedminas <[EMAIL PROTECTED]> 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


_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to