[ZODB-Dev] Using zodbex' change modules functionality

Morten W. Petersen morten@thingamy.net
Tue, 23 Oct 2001 14:00:32 +0200 (CEST)


Hi,

I'm changing the name of a product, and when doing this, other products
that rely on this product don't work anymore.

Will the zodbex change modules module be able to help me fix
this?  Currently manage_main at the root of the zope instance displays a
traceback:

Traceback (innermost last):
  File /home/morten/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line
223, in publish_module
  File /home/morten/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line
187, in publish
  File /home/morten/Zope-2.4.1-src/lib/python/Zope/__init__.py, line 226,
in zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /home/morten/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line
171, in publish
  File /home/morten/Zope-2.4.1-src/lib/python/ZPublisher/mapply.py, line
160, in mapply
    (Object: manage_main)
  File /home/morten/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line
112, in call_object
    (Object: manage_main)
  File
/home/morten/Zope-2.4.1-src/lib/python/Shared/DC/Scripts/Bindings.py, line
324, in __call__
    (Object: manage_main)
  File
/home/morten/Zope-2.4.1-src/lib/python/Shared/DC/Scripts/Bindings.py, line
354, in _bindAndExec
    (Object: manage_main)
  File /home/morten/Zope-2.4.1-src/lib/python/App/special_dtml.py, line
244, in _exec
    (Object: manage_main)
  File /home/morten/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_In.py,
line 711, in renderwob
    (Object: objectItems)
  File /home/morten/Zope-2.4.1-src/lib/python/DocumentTemplate/DT_In.py,
line 839, in sort_sequence
    (Object: objectItems)
  File /home/morten/Zope-2.4.1-src/lib/python/ZODB/Connection.py, line
544, in setstate
ImportError: (see above)

I tried using the change module in ZServer/medusa/monitor_client.py, and
got this traceback in the Zope log:

2001-10-23T11:48:05 PROBLEM(100) ZServer exceptions.AttributeError
'ZClasses' module has no attribute 'PersistentClass'
[/home/morten/Zope-2.4.1-src/ZServer/medusa/monitor.py|found_terminator|93]
[<secure_monitor_channel connected 127.0.0.1:40557 at 80cbbf4>|?|0]
[/home/morten/Zope-2.4.1-src/lib/python/Products/zodbex/ChangeModules/change_modules.py|changeClassModules|11]
[/home/morten/Zope-2.4.1-src/lib/python/ZODB/Transaction.py|commit|302]
[/home/morten/Zope-2.4.1-src/lib/python/ZODB/Connection.py|commit|307]
[/home/morten/Zope-2.4.1-src/lib/python/Products/zodbex/ChangeModules/change_modules.py|_changeClassDuringCommit|82]
[/home/morten/Zope-2.4.1-src/lib/python/Products/zodbex/ChangeModules/change_modules.py|find_global|67]

Any ideas?

Thanks,

Morten

-- 
About Thingamy:

  http://www.thingamy.com - For the CEO
  http://www.thingamy.org - The good stuff
  http://www.thingamy.net - Rants