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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -