[Zope] Acquisition???
Dieter Maurer
dieter@handshake.de
Thu, 15 Feb 2001 23:23:19 +0100 (CET)
Ulrich Wisser writes:
> <dtml-let itemB="'reports.overview'">
> <dtml-var "_[itemB]">
> </dtml-let>
> ... KeyError ...
of cause, as you do not have an object with name
"reports.overview".
You have two options. The first will definitely work,
the second may or may not (tell us!):
1. <dtml-var "_.render(_.getattr(_.getitem('reports'),'overview'))">
of cause, this may become
<dtml-var "_.render(reports.overview)">
as the components are constant.
2. <dtml-var "_.render(restrictedTraverse('reports/overview')">
Dieter