Problem with upgrade from Zope 2.6.1 to Zope 2.9.4
Dear users, we migrated a zope application from Zope 2.6.1 to Zope 2.9.4 by copying the Data.fs file to the new installation. given below is the trace. can anyone suggest what is the problem and corrective measures. we r not able to understand whether the error occurs at mytestflow or at index object. pls clarify. thanks and regards -yogeen 2006-09-12T16:38:47 ERROR Zope.SiteErrorLog http://mywebsite.com:8080/xxx/yyy/ll/ll_start Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module OFS.DTMLMethod, line 144, in __call__ - <DTMLMethod at /xxx/yyy/ll/ll_start> - URL: http://mywebsite.com:8080/xxx/yyy/ll/ll_start/manage_main - Physical Path: /xxx/yyy/ll/ll_start Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_Let, line 75, in render Module DocumentTemplate.DT_Util, line 196, in eval - __traceback_info__: mytestflow Module <string>, line 1, in <expression> Module Products.OpenFlow.openflow, line 379, in addInstance Module Products.OpenFlow.process, line 144, in addInstance Module Products.OpenFlow.instance, line 41, in addInstance Module Products.OpenFlow.instance, line 68, in manage_addInstance Module Products.OpenFlow.instance, line 57, in safeSetObject Module Products.BTreeFolder2.BTreeFolder2, line 446, in _setObject Module zope.event, line 23, in notify Module zope.app.event.dispatching, line 66, in dispatch Module zope.component, line 181, in subscribers Module zope.component.site, line 89, in subscribers Module zope.interface.adapter, line 481, in subscribers Module zope.app.event.objectevent, line 192, in objectEventNotify Module zope.component, line 181, in subscribers Module zope.component.site, line 89, in subscribers Module zope.interface.adapter, line 481, in subscribers Module OFS.subscribers, line 114, in dispatchObjectMovedEvent Module OFS.subscribers, line 137, in callManageAfterAdd Module Products.ZCatalog.CatalogPathAwareness, line 42, in manage_afterAdd Module Products.ZCatalog.CatalogPathAwareness, line 99, in index_object Module Products.ZCatalog.ZCatalog, line 567, in catalog_object Module Products.ZCatalog.Catalog, line 360, in catalogObject Module Products.PluginIndexes.PathIndex.PathIndex, line 124, in index_object AttributeError: _length __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--On 12. September 2006 04:28:12 -0700 yogeen honnavar <yogeen@yahoo.com> wrote:
Module Products.PluginIndexes.PathIndex.PathIndex, line 124, in index_object AttributeError: _length
-> doc/FAQ.txt -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
hello AJ, thanks for ur response. now i hv another issue. the problem is the older applicaiton which we hv in zope 2.6.1 uses a function ZopeTime. after migrating to Zope2.9.4 by moving the Data.fs file. it is found that the application reports error KeyError for ZopeTime. can u pls suggest whats wrong ? is ZopeTime available in 2.9.4. if we change it to "_.DateTime" its working. but we hv it in many places and we dont wish to change the code. pls suggest a solution. the problematic code is as follows <dtml-var ZopeTime fmt="ISO"> thanks and regards -yogeen --- Andreas Jung <lists@zopyx.com> wrote:
--On 12. September 2006 04:28:12 -0700 yogeen honnavar <yogeen@yahoo.com> wrote:
Module Products.PluginIndexes.PathIndex.PathIndex, line 124, in index_object AttributeError: _length
-> doc/FAQ.txt
-aj
-- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--On 13. September 2006 00:54:09 -0700 yogeen honnavar <yogeen@yahoo.com> wrote:
hello AJ, thanks for ur response. now i hv another issue. the problem is the older applicaiton which we hv in zope 2.6.1 uses a function ZopeTime. after migrating to Zope2.9.4 by moving the Data.fs file. it is found that the application reports error KeyError for ZopeTime. can u pls suggest whats wrong ? is ZopeTime available in 2.9.4. if we change it to "_.DateTime" its working. but we hv it in many places and we dont wish to change the code. pls suggest a solution. the problematic code is as follows
<dtml-var ZopeTime fmt="ISO">
No idea what happened to "_.ZopeTime()". -aj
On Wed, Sep 13, 2006 at 12:54:09AM -0700, yogeen honnavar wrote:
hello AJ, thanks for ur response. now i hv another issue. the problem is the older applicaiton which we hv in zope 2.6.1 uses a function ZopeTime. after migrating to Zope2.9.4 by moving the Data.fs file. it is found that the application reports error KeyError for ZopeTime. can u pls suggest whats wrong ? is ZopeTime available in 2.9.4. if we change it to "_.DateTime" its working. but we hv it in many places and we dont wish to change the code. pls suggest a solution. the problematic code is as follows
<dtml-var ZopeTime fmt="ISO">
I created a new dtml method in a zope 2.9.1 instance. I copied and pasted your problematic code. Works fine here. The only thing I can think of that might be relevant is that ZopeTime doesn't live in the dtml "_" namespace; instead it's acquired from the root application. Was it always that way? I don't know and don't have time to check. -- Paul Winkler http://www.slinkp.com
----- Original Message ----- From: "Paul Winkler" <pw_lists@slinkp.com> To: <zope@zope.org> Sent: Wednesday, September 13, 2006 10:33 AM Subject: Re: [Zope] Problem with upgrade from Zope 2.6.1 to Zope 2.9.4
On Wed, Sep 13, 2006 at 12:54:09AM -0700, yogeen honnavar wrote:
hello AJ, thanks for ur response. now i hv another issue. the problem is the older applicaiton which we hv in zope 2.6.1 uses a function ZopeTime. after migrating to Zope2.9.4 by moving the Data.fs file. it is found that the application reports error KeyError for ZopeTime. can u pls suggest whats wrong ? is ZopeTime available in 2.9.4. if we change it to "_.DateTime" its working. but we hv it in many places and we dont wish to change the code. pls suggest a solution. the problematic code is as follows
<dtml-var ZopeTime fmt="ISO">
I created a new dtml method in a zope 2.9.1 instance. I copied and pasted your problematic code. Works fine here.
I tried a dtml method in zope 2.9.2 containing: <dtml-var standard_html_header> <dtml-var ZopeTime fmt="ISO"> <dtml-var standard_html_footer> and it worked fine (i tried it as both an authenticated user and an anonymous user, and it worked in both cases) Maybe you should post the traceback from your error... Jonathan
yogeen honnavar wrote at 2006-9-13 00:54 -0700:
... <dtml-var ZopeTime fmt="ISO">
Maybe, your ZODB object is called in the wrong way? Errors like you describe it are a typical symptom for this case. You might read section "Calling DTML Objects" in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> to find out more about this problem. -- Dieter
participants (5)
-
Andreas Jung -
Dieter Maurer -
Jonathan -
Paul Winkler -
yogeen honnavar