[Erp5-report] r26527 - /erp5/trunk/products/ERP5/Document/Movement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 20 17:26:39 CEST 2009
Author: jp
Date: Mon Apr 20 17:26:38 2009
New Revision: 26527
URL: http://svn.erp5.org?rev=26527&view=rev
Log:
Naive implementation of Arrow
Modified:
erp5/trunk/products/ERP5/Document/Movement.py
Modified: erp5/trunk/products/ERP5/Document/Movement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Movement.py?rev=26527&r1=26526&r2=26527&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Movement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Movement.py [utf8] Mon Apr 20 17:26:38 2009
@@ -1067,3 +1067,34 @@
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)
+
+
More information about the Erp5-report
mailing list