[Zope] ZPT + python script problem
Chetan Kumar
chetan@cdac.ernet.in
Wed, 14 Aug 2002 00:02:21 +0530
Hi all
This fellow (copied straight from Zope Book) does not work !!!!!
------------------------------------------------------
<span tal:define="Times here/GetProjectsPython"
tal:replace="string:${Times/Hours} is ${Times/Mins}">
</span> Time in hours and minutes
------------------------------------------------------
The python script GetProjectsPython returns a dictionary with
Hours and Mins as keys and their values.
Here is last part of the error message.
----------------------------------------------------------
'root': <Application instance at 8d91c78>,
'template': <ZopePageTemplate instance at 8f44068>,
'traverse_subpath': [],
'user': 1381})
File /home1/sepg/Site/lib/python/TAL/TALInterpreter.py, line 158, in
__call__
File /home1/sepg/Site/lib/python/TAL/TALInterpreter.py, line 191, in
interpret
File /home1/sepg/Site/lib/python/TAL/TALInterpreter.py, line 523, in
do_useMacro
File /home1/sepg/Site/lib/python/TAL/TALInterpreter.py, line 191, in
interpret
File /home1/sepg/Site/lib/python/TAL/TALInterpreter.py, line 542, in
do_defineSlot
File /home1/sepg/Site/lib/python/TAL/TALInterpreter.py, line 191, in
interpret
File /home1/sepg/Site/lib/python/TAL/TALInterpreter.py, line 402, in
do_setLocal_tal
File /home1/sepg/Site/lib/python/Products/PageTemplates/TALES.py, line
247, in evaluate
File
/home1/sepg/Site/lib/python/Products/PageTemplates/Expressions.py, line
189, in __call__
File
/home1/sepg/Site/lib/python/Products/PageTemplates/Expressions.py, line
179, in _eval
Undefined: Sorry, an error occurred