[Zope] import Zope ...
Bakhtiar A Hamid
kedai@kedai.com.my
Wed, 30 Apr 2003 09:43:43 +0800
>
> but I have some (time) expensive stuff installed into
> the ZODB already -- it'd be nicer to just access the
> existing instances. Is that possible? Because so far,
> I haven't found where the "Root Folder" is imported.
> My understanding is that once I have the root object
> to the ZODB/OFS that I'll be able to access everything
> else by examining attributes, but I don't know how to
> get the top level object. (And I assume I must be able
> to access it, because why else would there be a
> conflict?)
iirc
>>> import Zope
>>> app=Zope.app()
app is now your root, and we can do stuff with it.
do a dir(Zope), and look for start* to get zope to start normally.. (can;t
remember off the top of my head)
check the list for many reference to doing this
hth
>
> I figure I'm probably not looking at the right documentation
> for that, and hoping someone on the list knows.
>
> Thank you,
> Terry
>
> --
> Terry Hancock ( hancock at anansispaceworks.com )
> Anansi Spaceworks http://www.anansispaceworks.com
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
--
Open WebMail Project (http://openwebmail.org)