[Zope] python expression in tal:attributes

Ferhat Ayaz ferhatayaz at yahoo.com
Wed Aug 30 07:18:53 EDT 2006


Hi,

I have a question. I really don't know how to solve
this problem. I have 

<ul>
 <li tal:define="links python:{
  'Catalog/index.html':'Catalog',
  'Users/index.html':'Users',
  'Orders/index.html':'Orders'}"
   tal:repeat="item links/items">
   <a href="" 
 tal:attributes= "href          
  string:${container/absolute_url}/${python:item[0]}"
 tal:content="python:item[1]">link name</a>
 </li>
</ul>

this is _of course_ not working because of
${python:item[0]}. It's illegal. But with this
expression I want to show what I want to do: I want to
add a python expression to a string. 

How can I do this??? 

Thanks,
Ferhat

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Zope mailing list