[Zope] Problem with send in ZClass
Jamie White
greatbks@truevine.net
Tue, 13 May 2003 12:03:37 -0400
I still need help with this
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 works when I test it alone, but for some reason when it is run from
the zclass zope says:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: Unauthorized
Error Value: You are not allowed to access send in this context
I tried changing the proxy role on the script to manager but that didn't
help.
Jamie
jamie@brobus.net
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )