[Zope] Calling colorz with variables
Harald Winkelmann
winkelmann@fh-weingarten.de
Fri, 29 Nov 2002 10:00:06 +0100
Hi Tino,
That's not what i ment.
I want to use colorz instead of
<dtml-var "colorz.main1_60_40">
like
<dtml-var "colorz(variable)">
I tried it via a script, but i always get an error in __getitem__
The script is just
return context.colorz['main1_60_40']
Any ideas
Harry
> Hi Harald,
>
> "colorz", also called "colors" or "colours" ;)
> are like any other tag attribute. Nothing special.
> Like <a href="&dtml-var-blahfasel;">
> is <body bgcolor="&dtml-var-mycolor;">
> Or, if you like the full uglyness of DTML,
> you can write <body bgcolor="<dtml-var mycolor>">
> > Hi Mr. Colorz,
> >
> > I'm just trying to call colorz with variable input.
> > I want to use the colorscheme with different colors in one
> dtml-tag.
> > What is the syntax.
> >
> > Thanks Harry
> >
> >