[Zope-dev] Ending up with a wrapped object through the web?

Kevin Dangoor kid@kendermedia.com
Thu, 25 May 2000 15:39:03 -0400


I'm trying to import KM|Net News into the latest Zope CVS. I am unable to
import the .zexp or XML files into the latest (tracebacks at the end).

When importing the .zexp, I get an "Attempt to store a wrapped persistent
object" error. This is really puzzling, because I'm not sure how a
completely through-the-web Product would have a wrapped object stored in it.
I tried removing the PythonMethods to see if they were stored in an unusual
way, and this did not change the behavior...

Does anyone have any ideas about this? It's very odd and could be a major
nuisance for people who are trying to move things between 2.1.x and 2.2...

Kevin

The .zexp gives this error:

  <STRONG>Error Type: InvalidObjectReference</STRONG><BR>
  <STRONG>Error Value: Attempt to store a wrapped persistent
object</STRONG><BR>
Traceback (innermost last):
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 224, in
publish_module
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 189, in
publish
  File /home/kid/Zope2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 179, in
publish
  File /home/kid/Zope2/lib/python/ZODB/Transaction.py, line 237, in commit
  File /home/kid/Zope2/lib/python/ZODB/Connection.py, line 347, in commit
    (Info: (('OFS.Application', 'Application'),
'\000\000\000\000\000\000\000\002', ''))
InvalidObjectReference: (see above)


The XML generated by 2.1.6 gives this error:
  <STRONG>Error Type: TypeError</STRONG><BR>
  <STRONG>Error Value: ('not enough arguments; expected 2, got 1',
<extension class ZClasses.Method.MW at 834bc68>, ())</STRONG><BR>
Traceback (innermost last):
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 224, in
publish_module
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 189, in
publish
  File /home/kid/Zope2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ElementWithAttributes)
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 175, in
publish
  File /home/kid/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_importObject)
  File /home/kid/Zope2/lib/python/ZPublisher/Publish.py, line 112, in
call_object
    (Object: manage_importObject)
  File /home/kid/Zope2/lib/python/OFS/ObjectManager.py, line 506, in
manage_importObject
    (Object: ElementWithAttributes)
  File /home/kid/Zope2/lib/python/ZODB/ExportImport.py, line 216, in
importFile
  File /home/kid/Zope2/lib/python/ZODB/ExportImport.py, line 318, in
importXML
  File /home/kid/Zope2/lib/python/ZODB/ExportImport.py, line 283, in
importFile
TypeError: (see above)

http://www.byproducts.com - Humor and Novelties