[Zope-dev] Zope 2 can't paste my objects

Itai Tavor itavor@bigpond.net.au
Thu, 1 Jul 1999 15:49:42 +1000


Hi,

I wrote a few products, which work fine under Zope 1.11 and also seem 
to work under Zope 2.0.0a3. But when I copy one of my objects and try 
to paste it (using ZServer on a ZODB3 database) I get:

Traceback (innermost last):
     File /opt/Zope-2.0.0a3/lib/python/ZPublisher/Publish.py, line 
256, in publish_module
     File /opt/Zope-2.0.0a3/lib/python/ZPublisher/Publish.py, line 
161, in publish
     File /opt/Zope-2.0.0a3/lib/python/ZPublisher/mapply.py, line 154, in mapply
       (Object: manage_pasteObjects)
     File /opt/Zope-2.0.0a3/lib/python/ZPublisher/Publish.py, line 98, 
in call_object
       (Object: manage_pasteObjects)
     File /opt/Zope-2.0.0a3/lib/python/OFS/CopySupport.py, line 198, 
in manage_pasteObjects
       (Object: template)
     File /opt/Zope-2.0.0a3/lib/python/OFS/CopySupport.py, line 388, in _getCopy
       (Object: 3)
     File /opt/Zope-2.0.0a3/lib/python/ZODB/ExportImport.py, line 183, 
in importFile
   NameError: TupleType

This doesn't happen when running Zerver on a ZODB2 database (using z2.py -2).

The same thing happens with all my products... so obviously 
something's wrong with them. But what? As far as I could see none of 
the documents regarding the products API say anything specific for 
Zope 2. And what is ZODB doing in importFile anyway when I'm only 
trying to paste an object?

Itai
--
Itai Tavor                      -- "Je sautille, donc je suis."    --
itavor@vic.bigpond.net.au       --               - Kermit the Frog --
--                                                                 --
-- "Every day, once a day, give yourself a present"  - Dale Cooper --