On Friday 14 December 2007, Christophe Combelles wrote:
> Actually, wouldn't it be nice (and logical) to transmit the root folder
> along with the event?
+1
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development
Christophe Combelles wrote:
Actually, wouldn't it be nice (and logical) to transmit the root folder along
with the event?
+1
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailm
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,
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. :-)
-Fred
--
Fred L. Drake,
On Fri, Dec 14, 2007 at 07:29:59PM +0100, Christophe Combelles wrote:
> how do I automatically create some needed object at application startup?
>
> Do it by subscribing to IDatabaseOpenedWithRootEvent (from
> zope.app.appsetup)
>
> Example code:
>
> @adapter(IDatabaseOpenedWithRootEvent)
> def Cr