[Zope] Newbie or beyond me?

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Sun, 06 Feb 2000 13:24:17 +1100


You can do this easily in Zope, using an expression in DTML, for
example:

<a  href=
   "<dtml-var "'http://www.somewhere.com/cgi/%s/somthingelse/%s'%(v1,v2)">">

>>> Jatwood@bwanazulia.com wrote
> Here is the question (after a few too many hours of messing with this)
> 
> I am trying to figure out the best way to populate links with 
> variables. In raw python I would just declare the links like
> 
> link =  "<a href="http://www.somewhere.com/cgi/%(v1)s/somthingelse/%(v2)s "
> 
> and populate the link with tuples  when I was going to use it.
> 
> link % variable
> 
> For the life of me I can't figure out how to do this in Zope. Any 
> help would be great.
> 
> I am sure this is easy but I am at a complete loss.
> 
> Thanks,
> JMA
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.