[ZPT] StandardLookandFeel example
Guido van Rossum
guido@digicool.com
Fri, 16 Mar 2001 21:28:37 -0500
> Thanks for the tip about the installer - i also had a reply from karl who
> pointed out that there is a compiled version for windows under
> http://www.zope.org/Members/Duncan/WinParsedXML.
>
> now i'm trying out some of the examples from the wiki and i've got a problem
> with the standard look and feel one. i get an error:
>
> Error Type: AttributeError
> Error Value: do_<
>
> Traceback (innermost last):
[...]
> File C:\Program Files\Jamkit\lib\python\TAL\TALInterpreter.py, line 159,
> in interpret
> AttributeError: (see above)
>
> here are the two templates, called master and simplewelcome respectively:
>
[master]
>
> <?xml version="1.0" ?>
> <html xmlns:tal="http://xml.zope.org/namespaces/tal"
> xmlns:metal="http://xml.zope.org/namespaces/metal"
> metal:use-macro="here/master">
Here's the culprit. Change the macro reference to
"here/master/macros/master" and it will work!
> <body>
> <div metal:fill-slot="main">
> <p>Welcome to the machine</p>
> </div>
> </body>
> </html>
>
> i think the ZPTs are all working okay; if i call the master template the tal
> instructions are all interpreted correctly.
Thank you for providing enough information to reproduce this!
--Guido van Rossum (home page: http://www.python.org/~guido/)