Commit 4db80088 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Naive implementation of Arrow

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b6fb3a5
......@@ -1067,3 +1067,34 @@ class Movement(XMLObject, Amount):
single destination.
"""
return (self, )
# Experimental Arrow Interface (will be improved in the future)
security.declareProtected(Permissions.AccessContentsInformation, 'getSourceArrowList')
def getSourceArrowList(self, context=None):
# Naive implementation - XXX
return self._getCategoryMembershipList(self, ('source', 'source_section', 'source_project',
'source_trade', 'source_function', )):
security.declareProtected(Permissions.AccessContentsInformation, 'getDestinationArrowList')
def getDestinationArrowList(self, context=None):
# Naive implementation - XXX
return self._getCategoryMembershipList(self, ('destination', 'destination_section',
'destination_project',
'destination_trade', 'destination_function', )):
security.declareProtected(Permissions.ModifyPortalContent, 'setSourceArrowList')
def setSourceArrowList(self, path):
# Naive implementation - XXX
self.setCategoryMembership(('source', 'source_section', 'source_project',
'source_trade', 'source_function', ),
path)
security.declareProtected(Permissions.ModifyPortalContent, 'setDestinationArrowList')
def setDestinationArrowList(self, path):
# Naive implementation - XXX
self.setCategoryMembership(('destination', 'destination_section',
'destination_project',
'destination_trade', 'destination_function', ),
path)
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