[Zope-dev] ZODB....
Carlos Neves
cneves@ruido-visual.pt
Wed, 26 Jul 2000 11:48:01 +0100
On Tue, 25 Jul 2000, jdiebold@imexpert.com wrote:
> Hi,
>
> I want to develop an external program that can store and retrieve
> an Object (such as a Person) in the ZoDB
> I tried the example that I found in the How to's but it doesn't works ....
> In fact, I have the following message :
> ZODB.FileStorage(file)
> attribute Error : FileStorage
>
> -->But I have imported ZODB
>
> And, when I try to import ZODB.FileStorage : the program stops with the
> following message :
> TypeError : call of non-function type
>
> what's wrong ?
>
> did Anybody have an example like this... ?
> Can anybody help me ?
>
Start by doing this:
import ZODB.FileStorage
ref = ZODB.FileStorage.FileStorage('YourData.fs')
and take it from here...
--
"Sometimes I think the surest sign that intelligent life exists elsewhere
in the Universe is that none of it has tried to contact us."
Carlos Neves
cneves@ruido-visual.pt