[Zope] what is wrong with this code

Jianping Zhu jzhu at fisher.forestry.uga.edu
Fri Oct 3 16:20:45 EDT 2003

####python code: example
def hello(name="dad",age=29):

   return "Hello %s you are %d years old" % (name ,age)

###Page template  testexample
<span tal:replace="python:here.example.hello(name='daughter',age=6)"></span>
when I test testexample i got something like

Zope Error
Zope has encountered an error while publishing this resource.

Error Type: AttributeError
Error Value: hello

I was expecting, hello daughter your age is 6
How can I fx this problem? thanks


More information about the Zope mailing list