[Zope] Filling nested METAL macro slots with ZSQL items

Dmitry Matveev Dmitry Matveev <matveev@uralfirm.ru>
Thu, 15 Aug 2002 12:40:15 +0600


Hello Eric,

try:
<span tal:define="project python: container.sqlProjectDataById(p_id = request['p_id'])">
or
<span tal:define="project python: container.sqlProjectDataById(request['p_id'])">

EW> -----------------------------------------------------------------
EW> project.html - ZPT (called like: "portfolio/project.html?p_id=1")
EW> -----------------------------------------------------------------
EW> <html metal:use-macro="here/master.html/macros/portfolio">
EW>    <head>
EW>      <title tal:content="template/title">The Title</title>
EW>    </head>
EW>    <body>
EW>      <span tal:define="project python: container.sqlProjectDataById[p_id]">
EW>         <span metal:fill-slot="description" 
EW> tal:content="project/description">Description goes here</span>



-- 
Best regards,                          www.uralfirm.ru
Dmitry Matveev                         mailto:matveev@uralfirm.ru