[Zope] Python Scrip
J. Cameron Cooper
jccooper at jcameroncooper.com
Mon Nov 3 23:15:25 EST 2003
>I want to write a python script to send an email to my staff. but it appear
>an erro
>
>Script line 14
> contentObject = review_state.object
> ^
>SyntaxError: invalid syntax
>
>what was wrong?
>My script like this
>
> contentObject = review_state.object
> def isIn(list1, list2):
> y=0
> for x in list1:
> if x in list2:
> y += 1
> return y
> mailList=[]
>
>
...
It's hard to tell by email, but I'd lay down money that your indentation
is wrong. Remember that indentation counts in Python, and Python scripts
don't want to start with any indentation.
--jcc
--
"My point and period will be throughly wrought,
Or well or ill, as this day's battle's fought."
More information about the Zope
mailing list