[Zope] Adding an external method

Gitte Wange gitte@mmmanager.org
Fri, 6 Jul 2001 15:12:04 +0200


On Friday 06 July 2001 15:11, =D6zg=FCr Caner wrote:
> Hi,
>
> the definition of your method is wrong.
> Because the external method is a method of the object which contain it.
> The correct definition is:
>
> def monthRange (self, dt)
>
>
<Snipped out my code>


Well I just added it but the error is still there :-(

I tried to import it into python from the FS but got an error. Here's the=
=20
traceback:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "monthRange.py", line 3
    def monthRange(self,dt):
    ^
SyntaxError: invalid syntax

Well .. maybe I have missed something but is def an invalid syntax ??

What is the script missing ?

Regards,

--=20
Gitte Wange Jensen

Sys Admin, Developer and a lot more
MMmanager.org Aps, Denmark

Phone: +45 29 72 79 72
Email: gitte@mmmanager.org
Web: www.mmmanager.org

Quote of the day:
Now, the above won't work for drivers/net, but I think it will work
for just about anything else. So let's just leave drivers/net alone for
now. Simplicity is good.

	- Linus Torvalds