Claudio Battaglino schrieb:
Hi,
what does exactly happen when I use "python:" into a zpt?
Is it a problem if I have many "python:" in my page templates?


Path expressions are by far better human readable IMHO. I try very hard to avoid Python expressions if possible.

To give you an example:

I prefer

<option tal:attributes="selected item/selected" ...

over

<option tal:attributes="python: test(foo == bar, 'selected', None)" ...

. But also because in the first example the template doesn't need to know about implementation details and thus it is better reusable e.g. as macro.

Tonico

_______________________________________________
Zope maillist  -  Zope@zope.org
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 )

Reply via email to