malthe/chameleon — Issue #68: LocationError cancelling checkout with plone.app.iterate
Author: anthonygerrard
Created: 2011-10-12 18:46:12+00:00
State: open

I get the following error when trying to cancel a checkout with plone.app.iterate. You don't get this error with the reference implementation. The current context is the working copy you are trying to cancel (delete). I'm working from the latest checked in version of Chameleon.

File "c:\sandbox\ourafrica.buildout\eggs\five.pt-2.2.0-py2.6.egg\five\pt\engine.py", line 93, in __call__
return self.template.render(**kwargs)
File "c:\sandbox\ourafrica.buildout\eggs\z3c.pt-2.1.4-py2.6.egg\z3c\pt\pagetemplate.py", line 147, in render
return base_renderer(**context)
File "c:\sandbox\ourafrica.buildout\src\chameleon\src\chameleon\zpt\template.py", line 213, in render
return super(PageTemplate, self).render(**vars)
File "c:\sandbox\ourafrica.buildout\src\chameleon\src\chameleon\template.py", line 193, in render
raise_with_traceback(exc, tb)
File "c:\sandbox\ourafrica.buildout\src\chameleon\src\chameleon\template.py", line 179, in render
self._render(stream, econtext, rcontext)
File "643700e794ed959b1df1a4d7445771734f18e87b.py", line 328, in render
File "c:\sandbox\ourafrica.buildout\eggs\five.pt-2.2.0-py2.6.egg\five\pt\expressions.py", line 132, in __call__
base = self.traverse(base, request, path_items)
File "c:\sandbox\ourafrica.buildout\eggs\five.pt-2.2.0-py2.6.egg\five\pt\expressions.py", line 109, in traverse
base, name, path_items[i:], request=request
File "c:\sandbox\ourafrica.buildout\eggs\zope.traversing-3.13.2-py2.6.egg\zope\traversing\adapters.py", line 136, in traversePathElement
return traversable.traverse(nm, further_path)
- __traceback_info__: (, 'page')
File "c:\sandbox\ourafrica.buildout\eggs\zope.traversing-3.13.2-py2.6.egg\zope\traversing\adapters.py", line 50, in traverse
raise LocationError(subject, name)
- __traceback_info__: (, 'page', ())
LocationError: (, 'page')

- Expression: "context/@@standard_macros/page"
- Filename: c:\sandbox\ourafrica.buildout\src\plone.app.iterate\plone\app\iterate\browser\cancel.pt
- Location: (1:23)

- Source: ... tal:use-macro="here/@@standard_macros/page" i18n:domain=" ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Arguments: repeat: {...} (0)
template:
views:
modules:
args:
here:
user:
nothing:
container:
request:
wrapped_repeat:
traverse_subpath:

default: