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

Phil Harris phil@philh.org
Thu, 1 Jul 1999 08:28:43 +0100


This is a reported bug (I reported it :)).

It happens under all versions of Zope2, no news on a fix yet.

It even happens when you try to copy a straight forward 'folder' type, or
when copying more than one 'simple' type.

HTH

Phil
phil@philh.org

----- Original Message -----
From: Itai Tavor <itavor@bigpond.net.au>
To: <zope-dev@zope.org>
Sent: Thursday, July 01, 1999 6:49 AM
Subject: [Zope-dev] Zope 2 can't paste my objects


> 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 --
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://www.zope.org/mailman/listinfo/zope-dev
>
> (For non-developer, user-level issues, use the companion list,
> zope@zope.org, http://www.zope.org/mailman/listinfo/zope )
>