Commit 39a59603 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Removed named parameter in category handling

Removed useless activate in category setting


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2472 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15f3df97
......@@ -1182,7 +1182,8 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
filter=None, portal_type=(), base=0):
self._getCategoryTool().setCategoryMembership(self, category, node_list,
spec=spec, filter=filter, portal_type=portal_type, base=base)
self.activate().edit() # Do nothing except call workflow method
#self.activate().edit() # Do nothing except call workflow method
# XXX This is a problem - it is used to circumvent a lack of edit
security.declareProtected( Permissions.ModifyPortalContent, 'setCategoryMembership' )
def setCategoryMembership(self, category, node_list, spec=(), base=0):
......@@ -1216,7 +1217,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
security.declareProtected( Permissions.AccessContentsInformation,
'_getAcquiredCategoryMembershipList' )
def _getAcquiredCategoryMembershipList(self, category=None, base=0 , spec=(),
def _getAcquiredCategoryMembershipList(self, category, base=0 , spec=(),
filter=None, **kw ):
"""
Returns the list of acquired categories
......
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