[Zope] Newbie: Missing a Variable (TAL/METAL Question)
    beno - 
    purabachata at yahoo.com
       
    Fri Jul 28 09:45:34 EDT 2006
    
    
  
I have done as you say and get this error:
   
  KeyError: '$var' 
   
  Here are the code lines I added into the table:
   
  <td><tal:content metal:use-macro="here/$var/macros/author">author</tal:content></td>
<td><tal:content metal:use-macro="here/$var/macros/content">content</tal:content></td>
  TIA,
  Ben
Dieter Maurer <dieter at handshake.de> wrote:
  beno - wrote at 2006-7-26 15:04 -0700:
> ...
> that works fine. But I'd like to call the following in that table:
> 
> 
>
> where "XXX" is the "item" that changes each time a new item from the batch is called.
You might try something like "here/?var/...".
"?var" reads the contents of the variable "var" and inserts this content
into the path expression.
Note that the value must be a string and that embedded '/' are *not*
treated as path separators.
-- 
Dieter
 		
---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20060728/0e3b1c51/attachment.htm
    
    
More information about the Zope
mailing list