[Zope] loading zclass from zeo client
Erik A. Dahl
edahl@confmon.com
12 Apr 2002 17:08:08 -0400
I'm writing an external zeo client program that needs to interact with
zclasses. When I try and load a zclass from the database I get the
following:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/home/edahl/zope/lib/python/ZODB/Connection.py", line 471, in
setstate
state = unpickler.load()
File "/home/edahl/zope/lib/python/ZODB/Connection.py", line 142, in
_persistent_load
return self[oid]
File "/home/edahl/zope/lib/python/ZODB/Connection.py", line 103, in
__getitem__
klass=self._db._classFactory(self, module, name)
File "/home/edahl/zope/lib/python/ZODB/DB.py", line 119, in
_classFactory
return getattr(__import__(location, _globals, _globals, _silly),
ImportError: No module named *UoHgL+xNgSWAgKCB4JIj9A==
When I look at the Basic tab on the zclass I see that its Class Id is
UoHgL+xNgSWAgKCB4JIj9A== but how do I import a class that is living in
the database? Zope is doing it so I assume there is a function
somewhere for this but I have yet to find it. Any help or examples
would be welcomed.
Thanks,
-EAD