We're in the process of migrating from Zope 2.11 to Zope 2.13, we have scripts which raise string exceptions, which is no longer allowed by the version of python.
In particular, we have scripts which:
raise "Unauthorized"
However, we don't seem to be able to import the Unauthorized exception from AccessControl or zExceptions. What is the new way to raise an Unauthorized exception from within a Zope Python Script?
Thanks,
Brian Brinegar
Web Services Coordinator
Engineering Computer Network
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )
In particular, we have scripts which:
raise "Unauthorized"
However, we don't seem to be able to import the Unauthorized exception from AccessControl or zExceptions. What is the new way to raise an Unauthorized exception from within a Zope Python Script?
Thanks,
Brian Brinegar
Web Services Coordinator
Engineering Computer Network
_______________________________________________
Zope maillist - Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope-dev )