Hi Gregor, I'm not sure about the initial problem you're having, but I can help you move FileStorages back and forth between 2.4 and 2.5 without "corruption". To use the "corrupted" Data.fs that came as a result of using a 2.4 Data.fs under 2.5, and then going back to 2.4 with the same Data.fs (actual symptom: AttributeError: __call__ in line 171 of BeforeTraverse.py), use this small MonkeyPatch product into your 2.4 instance: http://www.zope.org/Members/mcdonc/Products/MultiHookMonkeyPatch . 2.5 inserts an instance of a class as a traversal function that does not exist in 2.4; this patch creates a "dummy" class definition that allows you to start the site again and delete the 2.5-specific objects that get added to the root (temp_folder, session_data_manager, browser_id_manager). - C ----- Original Message ----- From: "Gregor Hoffleit" <gregor@hoffleit.de> To: <zope@zope.org> Sent: Wednesday, March 06, 2002 8:31 AM Subject: [Zope] Upgrade to 2.5.0 breaks site: TypeError: object of type 'string' is not callable
I'm running into strange trouble with one site when I try to upgrade it from Zope 2.4 to 2.5.0.
With 2.4 (up to 2.4.4b1), the site works fine. Now when I upgrade Zope to 2.5.0 (or 2.5.1b1), I get an "TypeError: object of type 'string' is not callable" whenever I try to access the site (see below).
Furthermore, running the Data.fs ZODB with 2.5.x once seems to corrupt it! I.e. when I move back the Data.fs to 2.4.4b1 (where it had worked before), it suddenly fails with the same error!
This is the error message:
Site Error
An error was encountered while publishing this resource.
TypeError Sorry, a site error occurred.
Traceback (innermost last): File /tmp/z/Zope-2.5.1b1-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /tmp/z/Zope-2.5.1b1-src/lib/python/ZPublisher/Publish.py, line 114, in publish File /tmp/z/Zope-2.5.1b1-src/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: MyOwnSite) File /tmp/z/Zope-2.5.1b1-src/lib/python/ZPublisher/Publish.py, line 89, in publish File /tmp/z/Zope-2.5.1b1-src/lib/python/ZPublisher/BaseRequest.py, line 247, in traverse File /tmp/z/Zope-2.5.1b1-src/lib/python/ZPublisher/BeforeTraverse.py, line 99, in __call__ TypeError: object of type 'string' is not callable
The output is the same for any path I try. The ZMI (http://localhost:8080/manage) also fails with this error.
The output of starting Zope (see below) doesn't show anything suspicious. I have no idea what could cause this problem, and how I could try to track down the problem.
Below I attach the output of starting Zope in debug mode.
The output of starting 2.4.4b1 (which works fine) in debug mode:
------ 2002-03-06T13:19:01 PROBLEM(100) ZODB Could not import class 'Connection' from module 'Products.ZMySQLDA.DA' /tmp/z/Zope-2.4.4b1-src/lib/python/SearchIndex/__init__.py:91: DeprecationWarning: The usage of the SearchIndex package is deprecated since Zope 2.4. This package is only kept for backwards compatibility for a while and will go away in a future release.
Please use instead the re-factored modules in Products/PluginIndexes.
warnings.warn("The usage of the SearchIndex package is deprecated since \ ------ 2002-03-06T13:19:12 INFO(0) ZServer HTTP server started at Wed Mar 6 14:19:12 2002 Hostname: clapton Port: 8081 ------ 2002-03-06T13:19:12 INFO(0) ZServer FTP server started at Wed Mar 6 14:19:12 2002 Hostname: clapton Port: 8022
The output of starting 2.5.1b1 (which doesn't work) in debug mode:
------ 2002-03-06T13:24:52 PROBLEM(100) ZODB Could not import class 'Connection' from module 'Products.ZMySQLDA.DA' ------ 2002-03-06T13:24:52 INFO(0) ZODB Opening database for mounting: '142567176_1015421092.553436' ------ 2002-03-06T13:24:52 INFO(0) ZODB Mounted database '142567176_1015421092.553436' at /temp_folder ------ 2002-03-06T13:25:01 INFO(0) Zope New disk product detected, determining if we need to fix up any ZClasses. ------ 2002-03-06T13:25:02 INFO(0) ZServer HTTP server started at Wed Mar 6 14:25:02 2002 Hostname: clapton Port: 8081 ------ 2002-03-06T13:25:02 INFO(0) ZServer FTP server started at Wed Mar 6 14:25:02 2002 Hostname: clapton Port: 8022
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )