Am 27.01.2014 01:36, schrieb chris strutton:
> I have the following code in a `Chameleon` template:
>
> <span tal:repeat="menu view.site_menu">
> <tal:block tal:condition="menu.current">
> <span>${menu.title}</span>
> </tal:block>
> <tal:block tal:condition="not menu.current">
> <span><a href="/${menu.href}">${menu.title}</a></span>
> </tal:block>
> <tal:block tal:condition="not repeat/menu/end">
> <span> | </span>
> </tal:block>
> </span>
>
> When I try to render this page I get the following error:
>
> TypeError: unsupported operand type(s) for /: 'RepeatDict' and 'dict'
> - Expression: "not repeat/menu/end"try not: repeat['menu'].end As I understand it, path expressions are not implemented in Chameleon. Regards Estartu -- ---------------------------------------------------------------------------- Gerhard Schmidt | http://www.augusta.de/~estartu/ | Fischbachweg 3 | | PGP Public Key 86856 Hiltenfingen | JabberID: [email protected] | auf Anfrage/ Tel: 08232 77 36 4 | | on request Fax: 08232 77 36 3 | |
0xCE4C9411.asc
Description: application/pgp-keys
<<attachment: estartu.vcf>>
signature.asc
Description: OpenPGP digital signature
