Commit dd8e3799 authored by Vincent Pelletier's avatar Vincent Pelletier

Wordwrap at 80 chars.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28968 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9947a003
......@@ -174,15 +174,17 @@ class ActiveObject(ExtensionClass.Base):
if activity_tool is None: return None # Do nothing if no portal_activities
return activity_tool.getActiveProcess()
security.declareProtected( permissions.ModifyPortalContent, 'setDefaultActivateParameters' )
security.declareProtected(permissions.ModifyPortalContent,
'setDefaultActivateParameters')
def setDefaultActivateParameters(self, **kw):
# This method sets the default keyword parameters to activate. This is useful
# when you need to specify special parameters implicitly (e.g. to reindexObject).
# This method sets the default keyword parameters to activate. This is
# useful when you need to specify special parameters implicitly (e.g. to
# reindexObject).
tv = getTransactionalVariable(self)
key = ('default_activate_parameter', id(aq_base(self)))
tv[key] = kw
security.declareProtected( permissions.View, 'getDefaultActivateParameterDict' )
security.declareProtected(permissions.View, 'getDefaultActivateParameterDict')
def getDefaultActivateParameterDict(self, inherit_placeless=True):
# This method returns default activate parameters to self.
# The result can be either a dict object or None.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment