[Zope] Problem with send in ZClass
Jamie White
greatbks@truevine.net
Sun, 11 May 2003 11:17:14 -0400
I built a ZClass and I want to send an email if a certain property is
missing, the script I am using to try to do this looks like this
# Send an Email
if draft == None:
body="Content Provider " + AUTHENTICATED_USER.getUserName() + " has
completed work on. Please review for publishing"
context.MailHost.send(body, mto="jamie@brobus.net",
mfrom="zope@brobus.net", subject="Content Done", encode=None)
return body
else:
return "No Message"
It when I test it alone, but for some reason when it is in the zclass it
says I am not allowed to send in this context. I changed the proxy role
on the script to manager but that didn't help.
Jamie
jamie@brobus.net