#2 — Unexpected keyword argument
| State | Tested and confirmed closed |
|---|---|
| Release: | 1.0.0 |
| Area | Bugs |
| Issue type | Bug |
| Severity | Low |
| Submitted by | (anonymous) |
| Submitted on | 2007-03-11 |
| Responsible | Lukasz Lakomy |
| Target release: | 1.0.0 |
Last modified on
2007-03-13
by
admin
Hi,
Testing ZPTDebugger with Zope 2.10.2 and PTProfiler present (maybe that makes a difference), I get the following error:
2007-03-11 03:14:48 ERROR root Exception while rendering an error message
Traceback (most recent call last):
File "/Users/limi/Projects/Zope/2.10/lib/python/OFS/SimpleItem.py", line 227, in raise_standardErrorMessage
v = s(**kwargs)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPythonScript.py", line 145, in __call__
return Script.__call__(self, *args, **kw)
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
return self._bindAndExec(args, kw, None)
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPythonScript.py", line 201, in _exec
result = f(*args, **kw)
File "Script (Python)", line 25, in standard_error_message
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
return self._bindAndExec(args, kw, None)
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPageTemplate.py", line 220, in _exec
result = self.pt_render(extra_context=bound_names)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPageTemplate.py", line 159, in pt_render
result = FSPageTemplate.inheritedAttribute('pt_render')(
File "/Users/limi/Projects/Plone/3.0/Products/PTProfiler/ProfilerPatch.py", line 69, in __patched_render__
ret = self._patching_class._org_method(self, source, extra_context)
File "/Users/limi/Projects/Zope/2.10/lib/python/Products/PageTemplates/PageTemplate.py", line 89, in pt_render
return super(PageTemplate, self).pt_render(c, source=source)
File "/Users/limi/Projects/Zope/2.10/lib/python/zope/pagetemplate/pagetemplate.py", line 117, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
TypeError: __patched_init__() got an unexpected keyword argument 'sourceAnnotations'
Testing ZPTDebugger with Zope 2.10.2 and PTProfiler present (maybe that makes a difference), I get the following error:
2007-03-11 03:14:48 ERROR root Exception while rendering an error message
Traceback (most recent call last):
File "/Users/limi/Projects/Zope/2.10/lib/python/OFS/SimpleItem.py", line 227, in raise_standardErrorMessage
v = s(**kwargs)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPythonScript.py", line 145, in __call__
return Script.__call__(self, *args, **kw)
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
return self._bindAndExec(args, kw, None)
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPythonScript.py", line 201, in _exec
result = f(*args, **kw)
File "Script (Python)", line 25, in standard_error_message
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 313, in __call__
return self._bindAndExec(args, kw, None)
File "/Users/limi/Projects/Zope/2.10/lib/python/Shared/DC/Scripts/Bindings.py", line 350, in _bindAndExec
return self._exec(bound_data, args, kw)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPageTemplate.py", line 220, in _exec
result = self.pt_render(extra_context=bound_names)
File "/Users/limi/Projects/Plone/3.0/Products/CMFCore/FSPageTemplate.py", line 159, in pt_render
result = FSPageTemplate.inheritedAttribute('pt_render')(
File "/Users/limi/Projects/Plone/3.0/Products/PTProfiler/ProfilerPatch.py", line 69, in __patched_render__
ret = self._patching_class._org_method(self, source, extra_context)
File "/Users/limi/Projects/Zope/2.10/lib/python/Products/PageTemplates/PageTemplate.py", line 89, in pt_render
return super(PageTemplate, self).pt_render(c, source=source)
File "/Users/limi/Projects/Zope/2.10/lib/python/zope/pagetemplate/pagetemplate.py", line 117, in pt_render
strictinsert=0, sourceAnnotations=sourceAnnotations)()
TypeError: __patched_init__() got an unexpected keyword argument 'sourceAnnotations'
Added by
Lukasz Lakomy
on
2007-03-11 10:46
Issue state:
unconfirmed → open
Severity:
Medium → Low
Target release:
None → 1.0.0
Responsible manager:
(UNASSIGNED) → lukasz
I haven't testes it with Zope 2.10. Maybe I will now. I think that this problem is caused by coexistence with PTProfler. What version are you using?
Added by
Lukasz Lakomy
on
2007-03-11 20:17
Issue state:
open → resolved
The problem was caused not by PTProfiler but by zope 2.10 itself. There were changes in TALInterperter __init__ (new keyword was added) and that's why error occurs.
It's fixed now and will be available in next release. Also I've made some changes to avoid 'deprecated' messages. Now this product should work in Zopes 2.7 - 2.11
It's fixed now and will be available in next release. Also I've made some changes to avoid 'deprecated' messages. Now this product should work in Zopes 2.7 - 2.11
Added by
(anonymous)
on
2007-03-11 20:23
Great! Thanks.
Is the code available in an SVN repository anywhere? The Collective or similar? I'd like to try it, and I'm happy to use the SVN version for that.
Is the code available in an SVN repository anywhere? The Collective or similar? I'd like to try it, and I'm happy to use the SVN version for that.
Added by
Lukasz Lakomy
on
2007-03-11 20:34
Unfortunatelly not. I'm using my employer's CVS repository. Can you suggest other probably better (and free) solution which will be more suitable for this open source project?
Added by
(anonymous)
on
2007-03-11 21:59
Added by
admin
on
2007-03-13 21:19
Issue state:
resolved → closed
Wow, this was hard. Zope 2.10 has so many differences compare to other Zope 2.x series. It is a big lap and 2.10 uses mostly new 'zope' package (which I suspect is really close to Zope 3). But finally I've fixed all bugs caused by this difference.
I had also severe time with adjusting unit tests. The main problem was in using Zope Page Templates 'offline'. In Zope 2.10 interface and adapter must be specified otherwise error is raised.
raise TraversalError('No traversable adapter found', obj)
I've struggled with this for hours but finally succeed.
I had also severe time with adjusting unit tests. The main problem was in using Zope Page Templates 'offline'. In Zope 2.10 interface and adapter must be specified otherwise error is raised.
raise TraversalError('No traversable adapter found', obj)
I've struggled with this for hours but finally succeed.