[CMF-checkins] SVN: CMF/branches/1.6/CMFCore/ A few more postonly
fixes
Alec Mitchell
apm13 at columbia.edu
Sat Mar 31 09:53:31 EDT 2007
Log message for revision 73954:
A few more postonly fixes
Changed:
U CMF/branches/1.6/CMFCore/MembershipTool.py
U CMF/branches/1.6/CMFCore/WorkflowTool.py
-=-
Modified: CMF/branches/1.6/CMFCore/MembershipTool.py
===================================================================
--- CMF/branches/1.6/CMFCore/MembershipTool.py 2007-03-31 13:47:07 UTC (rev 73953)
+++ CMF/branches/1.6/CMFCore/MembershipTool.py 2007-03-31 13:53:30 UTC (rev 73954)
@@ -294,7 +294,7 @@
return 1
else:
return 0
- postonly(deleteMemberArea)
+ deleteMemberArea = postonly(deleteMemberArea)
security.declarePublic('isAnonymousUser')
def isAnonymousUser(self):
Modified: CMF/branches/1.6/CMFCore/WorkflowTool.py
===================================================================
--- CMF/branches/1.6/CMFCore/WorkflowTool.py 2007-03-31 13:47:07 UTC (rev 73953)
+++ CMF/branches/1.6/CMFCore/WorkflowTool.py 2007-03-31 13:53:30 UTC (rev 73954)
@@ -33,6 +33,7 @@
from utils import _dtmldir
from utils import getToolByName
from utils import UniqueObject
+from utils import postonly
from WorkflowCore import ObjectDeleted
from WorkflowCore import ObjectMoved
from WorkflowCore import WorkflowException
@@ -188,6 +189,7 @@
if REQUEST is not None:
return self.manage_selectWorkflows(REQUEST,
manage_tabs_message='Changed.')
+ manage_changeWorkflows = postonly(manage_changeWorkflows)
#
# portal_workflow implementation.
@@ -437,7 +439,7 @@
# Administration methods
#
security.declareProtected( ManagePortal, 'setDefaultChain')
- def setDefaultChain(self, default_chain):
+ def setDefaultChain(self, default_chain, REQUEST=None):
""" Set the default chain for this tool
"""
@@ -450,9 +452,11 @@
ids.append(wf_id)
self._default_chain = tuple(ids)
+ setDefaultChain = postonly(setDefaultChain)
security.declareProtected( ManagePortal, 'setChainForPortalTypes')
- def setChainForPortalTypes(self, pt_names, chain, verify=True):
+ def setChainForPortalTypes(self, pt_names, chain, verify=True,
+ REQUEST=None):
""" Set a chain for a specific portal type.
"""
cbt = self._chains_by_type
@@ -468,6 +472,7 @@
if verify and not (type_id in ti_ids):
continue
cbt[type_id] = tuple(chain)
+ setChainForPortalTypes = postonly(setChainForPortalTypes)
security.declareProtected( ManagePortal, 'updateRoleMappings')
def updateRoleMappings(self, REQUEST=None):
@@ -486,6 +491,7 @@
'%d object(s) updated.' % count)
else:
return count
+ updateRoleMappings = postonly(updateRoleMappings)
security.declarePrivate('getWorkflowById')
def getWorkflowById(self, wf_id):
More information about the CMF-checkins
mailing list