It sounds like you are trying to call a module instead of a function... for example, you're doing something like: import ZODB.FileStorage f = ZODB.FileStorage('file') instead of: import ZODB.FileStorage.FileStorage f = ZODB.FileStorage.FileStorage('file') Toby Dickenson wrote:
On Tue, 25 Jul 2000 18:07:06 +0200, jdiebold@imexpert.com wrote:
I want to develop an external program that can store and retrieve an Object (such as a Person) in the ZoDB
That sounds a bit cruel.
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 ?
You are trying to call an object, and that object is not callable.
Normally that error message should include the name of the type of the object that is being abused....
"hello"() Traceback (innermost last): File "<stdin>", line 1, in ? TypeError: call of non-function (type string)
Either you truncated the message when you posted the message, or there is something strange with the object's type.
Unless you are using a pre-release python 1.6 or 2.0 - If so the name of your type might not get printed if it is unicode
Toby Dickenson tdickenson@geminidataloggers.com
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )