Commit 60b824df authored by Sebastien Robin's avatar Sebastien Robin

doNothing should support argumetns


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2699 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f4a74838
......@@ -294,8 +294,6 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
global aq_portal_type
ptype = self.portal_type
#LOG("In _aq_dynamic", 0, str((id, ptype, self)))
# If this is a portal_type property and everything is already defined
# for that portal_type, try to return a value ASAP
if aq_portal_type.has_key(ptype):
......@@ -372,7 +370,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
def _getCategoryTool(self):
return aq_inner(self.getPortalObject().portal_categories)
def _doNothing(self):
def _doNothing(self,*args,**kw):
# A method which does nothing (and can be used to build WorkflowMethods which trigger worklow transitions)
pass
......@@ -1680,6 +1678,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
#psyco.bind(getObjectMenu)
security.declareProtected(Permissions.ModifyPortalContent, 'setGuid')
def setGuid(self):
"""
......
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