[ZCM] [ZC] 1828/ 4 Resolve "Can't use ZEO TemporaryStorage in Zope2.8"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Sat Jul 2 15:06:20 EDT 2005


Issue #1828 Update (Resolve) "Can't use ZEO TemporaryStorage in Zope2.8"
 Status Resolved, Database/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1828

==============================================================
= Resolve - Entry #4 by mcdonc on Jul 2, 2005 3:06 pm

 Status: Accepted => Resolved

I've fixed this on the Zope 2.8 branch and HEAD, thanks for the bug reports!
________________________________________
= Assign - Entry #3 by tim_one on Jul 2, 2005 12:42 pm

 Supporters added: chrism; removed: tim_one

TemporaryStorage isn't part of ZODB/ZEO, it's part of Zope.  I don't know much about it.  I think Chris McD already knows about this, so assigned to him.  See his Issue 1526, which I expect is the same thing.
________________________________________
= Assign - Entry #2 by tseaver on Jul 2, 2005 11:44 am

 Status: Pending => Accepted

 Supporters added: tim_one

I set this up in a Zope 2.7-head sandbox successfully:  the only
change I made was to give the <zeoclient> section for the
'temporary' mount a different name ("tempstorage") than the 'primary'
mount ('zeostorage').

Equivalent changes on Zope 2.8-head did lead to the traceback you mention on startup (I didn't try adding the mount point):

  File "/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/ZODB/config.py", line 103, in open
    version_cache_size=section.version_cache_size)
  File "/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/ZODB/DB.py", line 239, in __init__
    storage.load(z64,'')
  File "/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/ZEO/ClientStorage.py", line 746, in load
    return self.loadEx(oid, version)[:2]
  File "/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/ZEO/ClientStorage.py", line 769, in loadEx
    data, tid, ver = self._server.loadEx(oid, version)
  File "/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/ZEO/ServerStub.py", line 187, in loadEx
    return self.rpc.call("loadEx", oid, version)
  File "/home/tseaver/projects/Zope-CVS/Zope-2_8-branch/lib/python/ZEO/zrpc/connection.py", line 528, in call
    raise inst # error raised by server
AttributeError: TemporaryStorage instance has no attribute 'loadEx'


________________________________________
= Request - Entry #1 by richard on Jun 30, 2005 11:51 pm

Setting up a fresh ZEO/Zope setup (a single mkzeoinstance and a single mkzopeinstance) and editing the ZEO config to add:

 %import tempstorage
 <temporarystorage temp>
    name temporary storage for sessioning
 </temporarystorage>

and the Zope config to add:

 <zodb_db temporary>
    <zeoclient>
      server 8100
      storage temp
      name zeostorage
      var $INSTANCE/var
    </zeoclient>
    mount-point /temp_folder
    container-class Products.TemporaryFolder.TemporaryContainer
 </zodb_db>

After starting up, the App doesn't have a temp_folder, and when I try to add the mount point, I get:

 Error Type: AttributeError
 Error Value: TemporaryStorage instance has no attribute 'loadEx'

==============================================================



More information about the Zope-Collector-Monitor mailing list