template tal - Accessing view reference in TAL with "python" namespace prefix -
how access view
reference (and members) when tal
used python
namespace prefix?
for example, got reference on records
property of current view
:
<tal:block define="record view/records">
how achieve same python
modifier:
<tal:block define="python: ....">
you use attribute access:
<tal:block define="python:view.records">
if records
method, make sure call it:
<tal:block define="python:view.records()">
Comments
Post a Comment