Hey Duncan,
> File "/home/zope/zope-2.8/lib/python/App/special_dtml.py", line 175, in _exec
> try: result = render_blocks(self._v_blocks, ns)
> KeyError: 'URL1'
>
> Any ideas? The above output was from a debug session that had the
> securityManager setup and 'app=makerequest(app)'
yep, AFAICT the answer looks simple: the fake REQUEST generated by the
makerequest call isn't functional enough, as URL1 is missing (or isn't
being auto created due its fakeness...).
You can try to workaround it by explicitly setting URL1...
app.REQUEST.other['URL1'] = ''
...or even fiddling with app.REQUEST._steps or any other internal thing
from lib/python/ZPublisher/HTTPRequest.py (but this seems harder).
BTW, that exception is raised inside render_blocks, which is defined at
lib/python/DocumentTemplate/cDocumentTemplate.c, IOW C code, that's why
the traceback isn't very useful... :-)
HTH,
--
___________________________________________________________________
Dorneles Treméa · Developer · Plone Solutions · Brazil
Consulting · Training · Development · http://plonesolutions.com
___________________________________________________________________
Plone Foundation · http://plone.org/foundation · Protecting Plone
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup