Fred Drake a écrit :
On Dec 14, 2007 3:48 PM, Marius Gedminas <[EMAIL PROTECTED]> wrote:
Or maybe reuse getInformationFromEvent from, although it smells like an internal

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...


Zope-Dev maillist  -
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to