15 Feb
2001
15 Feb
'01
11:11 p.m.
On 15 Feb 2001 Jason.Jones@awl.com wrote:
I am new to Zope and attempting to use an external method as described in the zope book, unfortunately I keep getting the following error:
Traceback (innermost last): SyntaxError: (see above)
The extension is indeed named "Example.py" and the method is the example from the book:
def hello(name='world') return "Hello %s" % name
I'm using Zope 2.3 on Windows NT.
Any ideas?
You're missing a colon, and so is the book (I just fixed it in the source). It should be: def hello(name='world'): return "Hello %s" % name -Michel