[ZPT] Difficulties with ZPT and namespaces
daniel.a.fulton@delphiauto.com
daniel.a.fulton@delphiauto.com
Tue, 26 Jun 2001 19:01:24 +0800
Hi Peter,
It's exactly the same. What the hell was I thinking?
anyway, maybe if you could post the script that creates "theme" objects and the
entire template it would help a little. or give some more explanation because I
can't
seem to reproduce the error, file-based or ttw.
sorry for erroneous post earlier,
Daniel
"Peter Bengtsson" <mail@peterbe.com> on 06/26/2001 04:31:36 PM
To: Daniel A Fulton/cn/delphiauto@DELPHI ASIA
cc: zpt@zope.org
Subject: Re: [ZPT] Difficulties with ZPT and namespaces
How is this any different than:
<div tal:define="themeobj here/theme/absolute_url | default"
tal:replace="themeobj">Not found in any</div>
??
> I think this hands back what you need.
>
> <div tal:define="themeobj python:path('here/theme/absolute_url')"
> tal:replace="themeobj">Not found in any</div>
>
> Cheers,
>
> Daniel
>
> > Me and my components again...
> >
> > We have a pretty complex system where I'm just the guy who prepares the
ZPT
> > pages (rewriting them from existing DTML Methods).
> > When instance objects are called, some module __call__(myZPT) me and my
ZPT
> > code is rendered.
> >
> > <dtml-var component>
> > was replaced by
> > <div tal:replace="options/component"> since <div
> > tal:replace="here/component"> or <div tal:replace="container/component">
> > didn't work.
> >
> > Now another problem.
> >
> > In the old DTML this used to work:
> >
> > <dtml-var "theme.GetImage('Pbulletmfc.gif')"> and this does what it is
> > expected to do.
> > Where 'theme' is an object in the aquisition path of the instance my ZPT
is
> > being called among.
> > <dtml-var "theme.absolute_url()"> also returns the expected URL.
> >
> > I have tried these alternatives:
> >
> > <div
> > tal:define="themeobj options/theme/absolute_url |
> > here/theme/absolute_url |
> > container/theme/absolute_url |
> > request/theme/absolute_url |
> > default"
> > tal:replace="themeobj">Not found in any</div>
> >
>
> > What else can it be??
>
>
>
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt