Re: TAL Hotfix 2004-07-13 for Zope 2.7.0, 2.7.1
--- In zope@yahoogroups.com, Mike Ekstrand <michael-zope@e...> wrote:
I installed the hotfix on my Zope 2.7.1 install (platform: win32), and am now getting errors in some pages using METAL.
It's a METALError, with the following message:
macro 'root/admin/macros/macros/page' has incompatible version '1.4', at line 5, column 1
The pages referencing this macro worked just fine before the hotfix.
Yup, same here. I'm running Zope 2.7.1 + Hotfix_20040713 under gentoo linux kernel 2.4.22. I have a product which uses some macros and with the patch doesn't work. Removing it everything works perfectly. Complete traceback: 2004-07-14T10:59:24 ERROR(200) SiteError http://localhost/temp/manage_addProduct/JMColorPicker/manage_addJMColorPicke... Traceback (most recent call last): File "/usr/local/Zope/2.7.1/lib/python/ZPublisher/Publish.py", line 101, in publish request, bind=1) File "/usr/local/Zope/2.7.1/lib/python/ZPublisher/mapply.py", line 88, in mapply if debug is not None: return debug(object,args,context) File "/usr/local/Zope/2.7.1/lib/python/ZPublisher/Publish.py", line 39, in call_object result=apply(object,args) # Type s<cr> to step into published object. File "/usr/local/Zope/2.7.1/data/Products/JMColorPicker/JMColorPicker.py", line 25, in manage_addJMColorPickerForm return _addJMColorPickerForm.__of__(self)(Kind='JMColorPicker') File "/usr/local/Zope/2.7.1/lib/python/Shared/DC/Scripts/Bindings.py", line 306, in __call__ return self._bindAndExec(args, kw, None) File "/usr/local/Zope/2.7.1/lib/python/Shared/DC/Scripts/Bindings.py", line 343, in _bindAndExec return self._exec(bound_data, args, kw) File "/usr/local/Zope/2.7.1/lib/python/Products/PageTemplates/PageTemplateFile.py", line 106, in _exec return self.pt_render(extra_context=bound_names) File "/usr/local/Zope/2.7.1/lib/python/Products/PageTemplates/PageTemplate.py", line 96, in pt_render tal=not source, strictinsert=0)() File "/usr/local/Zope/2.7.1/lib/python/TAL/TALInterpreter.py", line 189, in __call__ self.interpret(self.program) File "/usr/local/Zope/2.7.1/lib/python/TAL/TALInterpreter.py", line 233, in interpret handlers[opcode](self, args) File "/usr/local/Zope/2.7.1/lib/python/TAL/TALInterpreter.py", line 656, in do_useMacro self.position) METALError: macro 'here/generic_add/macros/addHeader' has incompatible version '1.4', at line 1, column 1 I don't know what "version '1.4'" means, I'm not defining such thing. Thanks in advanced, Josef
On Wednesday 14 July 2004 05:10 am, Josef Meile wrote:
Yup, same here. I'm running Zope 2.7.1 + Hotfix_20040713 under gentoo linux kernel 2.4.22. I have a product which uses some macros and with the patch doesn't work. Removing it everything works perfectly.
Sigh. Even though things work for you in RC1, I'd like to create a hotfix that works for everyone. Michael Ekstrand has sent me a pair of sample pages that should demonstrate the problem, but I've either not succeeded in reproducing the error, or I've not recognized what's gone wrong. There's nothing on stdout/stderr, and nothing in the error log (using 2.7.1 plus the hotfix results in the same thing as using 2.7.1 alone).
I don't know what "version '1.4'" means, I'm not defining such thing.
This might be the best clue so far, actually. This hints that the template containing the macros was "compiled" before the hotfix was loaded, but is being rendered after. (The "version" here is the version of the bytecode language used; the hotfix updates the implementation from version 1.4 to version 1.5.) I'll continue to look into this. -Fred -- Fred L. Drake, Jr. <fred at zope.com> Zope Corporation
On Wednesday 14 July 2004 10:35 am, Fred Drake wrote:
Sigh. Even though things work for you in RC1, I'd like to create a hotfix that works for everyone.
Ok, I understand what happened. I'll have a new hotfix out shortly that will replace Hotfix_2004-07-13. -Fred -- Fred L. Drake, Jr. <fred at zope.com> Zope Corporation
participants (2)
-
Fred Drake -
Josef Meile