beno - wrote:
How do I do that? Even better, is it possible to just open up each file and read its contents??
Ben, First this is wrong: <td><tal:content ... If should be <td tal:content ... But that may be wrong in the context you've given. Since "do it in python" has been a theme lately, you can also return a macro from a python script like so: Where there is an author might be a parameter. #some python script # return container.YourMacroFolder.someMacro[ author ] ----------------------------------------------------------------------- And in your ZPT: (where result.author is just a stub for whatever your using) <td><span metal:use-macro="python: context.youPythonScript(result.author)">macro goes here</span></td> I suggest *always* doing stuff in python when things are not clear. Then code back into your Page Templates, if desired DAvid |
_______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
