[Zope-Checkins]
SVN: Zope/branches/2.9/lib/python/AccessControl/Owned.py
Brown bag of the year award: missed the decorator here
Martijn Pieters
mj at zopatista.com
Thu Mar 29 01:21:22 EDT 2007
Log message for revision 73884:
Brown bag of the year award: missed the decorator here
Changed:
U Zope/branches/2.9/lib/python/AccessControl/Owned.py
-=-
Modified: Zope/branches/2.9/lib/python/AccessControl/Owned.py
===================================================================
--- Zope/branches/2.9/lib/python/AccessControl/Owned.py 2007-03-29 05:10:08 UTC (rev 73883)
+++ Zope/branches/2.9/lib/python/AccessControl/Owned.py 2007-03-29 05:21:22 UTC (rev 73884)
@@ -176,6 +176,7 @@
if owner == info: return 0
return security.checkPermission('Take ownership', self)
+ @postonly
def manage_takeOwnership(self, REQUEST, RESPONSE, recursive=0):
"""Take ownership (responsibility) for an object.
@@ -195,6 +196,7 @@
RESPONSE.redirect(REQUEST['HTTP_REFERER'])
+ @postonly
def manage_changeOwnershipType(self, explicit=1,
RESPONSE=None, REQUEST=None):
"""Change the type (implicit or explicit) of ownership.
More information about the Zope-Checkins
mailing list