[ZODB-Dev] can't undo with FileStorage and ZEO

Jim Fulton jim@zope.com
Wed, 19 Dec 2001 14:29:29 -0500


Andrew Sydelko wrote:
> 
> Jim Fulton wrote:
> > The Zope App package (or just App.Undo) must be in the Python path of the storage server.
> 
> Umm... I believe it is.

Please double check that.

> And it's not saying that
> it can't find the module App.Undo,
> it's complaining
> about the "global Prefix" in the module App.Undo.

The message says it couldn't get it. It could not get it because
it couldn't find the module or because the Prefix class isn't in the
module. The only the later is true is that you modified the module.

Note that the Undo module imports other things. Maybe your missing one
of those.


> 
> Any way to check that it is in the python path of the
> server?

See if you can undo. ;) Sorry.
How about modifying the server to print the PYTHONPATH
environment variable.

> I'm about 99% sure that it is. And the traceback
> kinda shows that.

Not really.

Jim
 
> --andy.
> 
> Andrew T Sydelko wrote:
> >
> > Here is the traceback I get when clicking on the Undo
> > tab anywhere within Zope. I don't know enough to be able
> > to decipher it.
> >
> > Any ideas would be great... I'd be happy to provide whatever
> > information is necessary.
> >
> > We are running:
> >
> >  Zope Version (Zope 2.4.3 (source release, python 2.1, linux2), python
> >  2.1.1, linux2)
> > Python Version 2.1.1 (#1, Nov 23 2001, 21:55:33) [GCC 2.95.4 20011006
> > (Debian prerelease)]
> > System Platform linux2
> >
> > The traceback is:
> >
> > Traceback (innermost last):
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/ZPublisher/Publish.py,
> >   line 223, in publish_module
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/ZPublisher/Publish.py,
> >   line 187, in publish
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/Zope/__init__.py,
> >   line 226, in zpublisher_exception_hook
> >     (Object: test)
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/ZPublisher/Publish.py,
> >   line 171, in publish
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/ZPublisher/mapply.py,
> >   line 160, in mapply
> >     (Object: manage_UndoForm)
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/ZPublisher/Publish.py,
> >   line 112, in call_object
> >     (Object: manage_UndoForm)
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/Shared/DC/Scripts/Bindings.py,
> >   line 324, in __call__
> >     (Object: manage_UndoForm)
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/Shared/DC/Scripts/Bindings.py,
> >   line 354, in _bindAndExec
> >     (Object: manage_UndoForm)
> >   File
> >   /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/App/special_dtml.py,
> >   line 244, in _exec
> >     (Object: manage_UndoForm)
> >   File /data/www/Zope.6/src/Zope-2.4.3-src/lib/python/App/Undo.py,
> >   line 165, in undoable_transactions
> >     (Object: test)
> >   File /data/www/Zope.6/Zope/lib/python/ZEO/ClientStorage.py, line
> >   602, in undoInfo
> >     (Object: ('192.168.1.52', 5900))
> >   File /data/www/Zope.6/Zope/lib/python/ZEO/zrpc.py, line 239, in
> >   __call__
> > StorageServerError: Couldn't find global Prefix in module App.Undo
> >
> > --andy.

--
Jim Fulton           mailto:jim@zope.com       Python Powered!        
CTO                  (888) 344-4332            http://www.python.org  
Zope Corporation     http://www.zope.com       http://www.zope.org