Emiliano Marmonti wrote at 2003-9-18 21:48 -0300:
... Now I have a problem that have no idea how to fix it. Could add objects into a ZODB separate database, could add the catalog and the
index, but when the database has one element, with every operation (inclusive opening it) this message appears from Zope:
'App.PersistentExtra' module has no attribute 'Autor'
You screwed up your ZODB... I have no idea how you had been able to do that.
... (Info: ('\x00\x00\x00\x00\x00\x00\x00\x0e', '((U\x13App.PersistentExtraq\x01U\x05Autorq\x02tq\x03Nt.}q\x04(U\x02idq\x05U\x0822596451q\x06U\x04nameq\x07U\x0f
Juana Silviaq\x08U\robservacionesq\tU\x0bpruebaq\nu.')) File C:\Archivos de programa\Zope\lib\python\ZODB\DB.py, line 122, in _classFa ctory AttributeError: 'App.PersistentExtra' module has no attribute 'Autor'
Somehow, you stored an object into the ZODB the class of which was "App.PersistentExtra.Autor" As the name suggests, there is no class "Autor" (seems not to be English) in "App.PersistentExtra". When you try to load the object, Zope does indeed not find it.
Simply, I have no idea what is happening, have searched over App.PersistentExtra but...what is???? Somebody knows where could I find an example (that works and is updated) for doing this kind of tasks?
The ZODB guide might help you. Of course, it does not contain an example for precisely your task. Moreover, zodb-dev@zope.org might be more adequate for your type of questions.
My code is: ----------------------------- ... class Autor(Persistent): ...
Somehow, you succeeded to let Python think this class were defined in "App.PersistentExtra". I have no idea how you could do that... Dieter