12 Dec
2003
12 Dec
'03
7:50 p.m.
fowlertrainer@anonym.hu wrote at 2003-12-12 10:02 +0100:
... If I rename the scripts to NN.py from NN, the calling of scripts is unavailable.
This is not true. You will not have any problems with TALES "path" expressions. Access in Python is a bit more cumbersome. Instead of "obj.attr", you need to use "getattr(obj,'attr')".
See this:
When script named x <p tal:replace="python: here.x()"></p>
With a path expression, this becomes 'tal:replace="here/x"'
When script named x.py <p tal:replace="python: here.x.py()"></p>
With a path expression, this becomes 'tal:replace="here/x.py"' Please reread the TAL/TALES description in the Zope Book (2.6 edition)... You are asking too many trivial questions ;-) -- Dieter