Hello ! I have many scripts. In yesterday my Zope is crashed, and I to become acquainted with Zope FTP. I use the Zope's HTML editor before, but it is very ugly sometimes. So I planned to I editing in FTP. But my Context Editor is know the file type by extension. If I rename the scripts to NN.py from NN, the calling of scripts is unavailable. See this: When script named x <html> <p tal:replace="python: here.x()"></p> </html> When script named x.py <html> <p tal:replace="python: here.x.py()"></p> </html> But it is drop an error. It is possible to I call this script, or I never try with rename scripts ? Thanx: KK -- Best regards, fowlertrainer mailto:fowlertrainer@anonym.hu
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
participants (2)
-
Dieter Maurer -
fowlertrainerļ¼ anonym.hu