Thanks for the help, after seeing the first response I took a look at the book and sure enough, no colon. I had just copied and pasted without really checking the function. Thanks, Jason ---------- From: michel@digicool.com Sent: Friday, February 16, 2001 6:29 AM To: Jones, Jason Cc: zope@zope.org Subject: Re: [Zope] Simple problem (probably)... 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
participants (1)
-
Jason.Jones@awl.com