[Zope] ZODB and 'root()' object (QUEST)
Michel Pelletier
michel@digicool.com
Thu, 09 Mar 2000 12:23:48 -0800
Oscar Picasso wrote:
>
> HI,
>
> In the python interpreter I have done the following things:
> >>>import sys, ZODB, ZODB.FileStorage
> >>>db = ZODB.DB(ZODB.FileStorage('/usr/local/zope/zope214/Data.fs'))
Shouldn't there be /var/ here? ^^^^
> >>>root=db.open().root()
>
> Where 'Data.fs' is my Zope DB with a lot of stuff. Then I did the following
> things:
> >>>root.__dict__
> >>>{} #result of the previous "command"
> >>>dir(root)
> >>>[] #result of the previous "command"
> >>>vars(root)
> >>>{'container' : {}} #result of the previous "command"
All of the above work for me when pointing to the right file.
-Michel