Commit 8ea38a20 authored by Alexandre Boeglin's avatar Alexandre Boeglin

Forgot 'self' as first method argument.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2722 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4e1897d
...@@ -892,7 +892,7 @@ class Delivery(XMLObject): ...@@ -892,7 +892,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getInventory(**kw) return self.portal_simulation.getInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventory') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventory')
def getCurrentInventory(**kw): def getCurrentInventory(self, **kw):
""" """
Returns current inventory Returns current inventory
""" """
...@@ -900,7 +900,7 @@ class Delivery(XMLObject): ...@@ -900,7 +900,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getCurrentInventory(**kw) return self.portal_simulation.getCurrentInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getAvailableInventory') security.declareProtected(Permissions.AccessContentsInformation, 'getAvailableInventory')
def getAvailableInventory(**kw): def getAvailableInventory(self, **kw):
""" """
Returns available inventory Returns available inventory
(current inventory - deliverable) (current inventory - deliverable)
...@@ -909,7 +909,7 @@ class Delivery(XMLObject): ...@@ -909,7 +909,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getAvailableInventory(**kw) return self.portal_simulation.getAvailableInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventory') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventory')
def getFutureInventory(**kw): def getFutureInventory(self, **kw):
""" """
Returns inventory at infinite Returns inventory at infinite
""" """
...@@ -925,7 +925,7 @@ class Delivery(XMLObject): ...@@ -925,7 +925,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getInventoryList(**kw) return self.portal_simulation.getInventoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryList')
def getCurrentInventoryList(**kw): def getCurrentInventoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -933,7 +933,7 @@ class Delivery(XMLObject): ...@@ -933,7 +933,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getCurrentInventoryList(**kw) return self.portal_simulation.getCurrentInventoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryList')
def getFutureInventoryList(**kw): def getFutureInventoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -949,7 +949,7 @@ class Delivery(XMLObject): ...@@ -949,7 +949,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getInventoryStat(**kw) return self.portal_simulation.getInventoryStat(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryStat') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryStat')
def getCurrentInventoryStat(**kw): def getCurrentInventoryStat(self, **kw):
""" """
Returns statistics of inventory grouped by section or site Returns statistics of inventory grouped by section or site
""" """
...@@ -957,7 +957,7 @@ class Delivery(XMLObject): ...@@ -957,7 +957,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getCurrentInventoryStat(**kw) return self.portal_simulation.getCurrentInventoryStat(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryStat') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryStat')
def getFutureInventoryStat(**kw): def getFutureInventoryStat(self, **kw):
""" """
Returns statistics of inventory grouped by section or site Returns statistics of inventory grouped by section or site
""" """
...@@ -973,7 +973,7 @@ class Delivery(XMLObject): ...@@ -973,7 +973,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getInventoryChart(**kw) return self.portal_simulation.getInventoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryChart') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryChart')
def getCurrentInventoryChart(**kw): def getCurrentInventoryChart(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -981,7 +981,7 @@ class Delivery(XMLObject): ...@@ -981,7 +981,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getCurrentInventoryChart(**kw) return self.portal_simulation.getCurrentInventoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryChart') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryChart')
def getFutureInventoryChart(**kw): def getFutureInventoryChart(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -989,7 +989,7 @@ class Delivery(XMLObject): ...@@ -989,7 +989,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getFutureInventoryChart(**kw) return self.portal_simulation.getFutureInventoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryList')
def getInventoryHistoryList(**kw): def getInventoryHistoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -997,7 +997,7 @@ class Delivery(XMLObject): ...@@ -997,7 +997,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getInventoryHistoryList(**kw) return self.portal_simulation.getInventoryHistoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryChart') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryChart')
def getInventoryHistoryChart(**kw): def getInventoryHistoryChart(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -1005,7 +1005,7 @@ class Delivery(XMLObject): ...@@ -1005,7 +1005,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getInventoryHistoryChart(**kw) return self.portal_simulation.getInventoryHistoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryList')
def getMovementHistoryList(**kw): def getMovementHistoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -1013,7 +1013,7 @@ class Delivery(XMLObject): ...@@ -1013,7 +1013,7 @@ class Delivery(XMLObject):
return self.portal_simulation.getMovementHistoryList(**kw) return self.portal_simulation.getMovementHistoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryStat') security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryStat')
def getMovementHistoryStat(**kw): def getMovementHistoryStat(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
......
...@@ -203,7 +203,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -203,7 +203,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getInventory(**kw) return self.portal_simulation.getInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventory') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventory')
def getCurrentInventory(**kw): def getCurrentInventory(self, **kw):
""" """
Returns current inventory Returns current inventory
""" """
...@@ -211,7 +211,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -211,7 +211,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getCurrentInventory(**kw) return self.portal_simulation.getCurrentInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getAvailableInventory') security.declareProtected(Permissions.AccessContentsInformation, 'getAvailableInventory')
def getAvailableInventory(**kw): def getAvailableInventory(self, **kw):
""" """
Returns available inventory Returns available inventory
(current inventory - deliverable) (current inventory - deliverable)
...@@ -220,7 +220,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -220,7 +220,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getAvailableInventory(**kw) return self.portal_simulation.getAvailableInventory(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventory') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventory')
def getFutureInventory(**kw): def getFutureInventory(self, **kw):
""" """
Returns inventory at infinite Returns inventory at infinite
""" """
...@@ -236,7 +236,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -236,7 +236,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getInventoryList(**kw) return self.portal_simulation.getInventoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryList')
def getCurrentInventoryList(**kw): def getCurrentInventoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -244,7 +244,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -244,7 +244,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getCurrentInventoryList(**kw) return self.portal_simulation.getCurrentInventoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryList')
def getFutureInventoryList(**kw): def getFutureInventoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -260,7 +260,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -260,7 +260,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getInventoryStat(**kw) return self.portal_simulation.getInventoryStat(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryStat') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryStat')
def getCurrentInventoryStat(**kw): def getCurrentInventoryStat(self, **kw):
""" """
Returns statistics of inventory grouped by section or site Returns statistics of inventory grouped by section or site
""" """
...@@ -268,7 +268,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -268,7 +268,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getCurrentInventoryStat(**kw) return self.portal_simulation.getCurrentInventoryStat(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryStat') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryStat')
def getFutureInventoryStat(**kw): def getFutureInventoryStat(self, **kw):
""" """
Returns statistics of inventory grouped by section or site Returns statistics of inventory grouped by section or site
""" """
...@@ -284,7 +284,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -284,7 +284,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getInventoryChart(**kw) return self.portal_simulation.getInventoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryChart') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryChart')
def getCurrentInventoryChart(**kw): def getCurrentInventoryChart(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -292,7 +292,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -292,7 +292,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getCurrentInventoryChart(**kw) return self.portal_simulation.getCurrentInventoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryChart') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryChart')
def getFutureInventoryChart(**kw): def getFutureInventoryChart(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -300,7 +300,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -300,7 +300,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getFutureInventoryChart(**kw) return self.portal_simulation.getFutureInventoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryList')
def getInventoryHistoryList(**kw): def getInventoryHistoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -308,7 +308,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -308,7 +308,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getInventoryHistoryList(**kw) return self.portal_simulation.getInventoryHistoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryChart') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryHistoryChart')
def getInventoryHistoryChart(**kw): def getInventoryHistoryChart(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -316,7 +316,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -316,7 +316,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getInventoryHistoryChart(**kw) return self.portal_simulation.getInventoryHistoryChart(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryList') security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryList')
def getMovementHistoryList(**kw): def getMovementHistoryList(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -324,7 +324,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -324,7 +324,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getMovementHistoryList(**kw) return self.portal_simulation.getMovementHistoryList(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryStat') security.declareProtected(Permissions.AccessContentsInformation, 'getMovementHistoryStat')
def getMovementHistoryStat(**kw): def getMovementHistoryStat(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -332,7 +332,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -332,7 +332,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getMovementHistoryStat(**kw) return self.portal_simulation.getMovementHistoryStat(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getNextNegativeInventoryDate') security.declareProtected(Permissions.AccessContentsInformation, 'getNextNegativeInventoryDate')
def getNextNegativeInventoryDate(**kw): def getNextNegativeInventoryDate(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -342,7 +342,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -342,7 +342,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
# Asset Price API # Asset Price API
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryAssetPrice') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoryAssetPrice')
def getInventoryAssetPrice(**kw): def getInventoryAssetPrice(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -350,7 +350,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -350,7 +350,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getInventoryAssetPrice(**kw) return self.portal_simulation.getInventoryAssetPrice(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryAssetPrice') security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryAssetPrice')
def getCurrentInventoryAssetPrice(**kw): def getCurrentInventoryAssetPrice(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -358,7 +358,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -358,7 +358,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getCurrentInventoryAssetPrice(**kw) return self.portal_simulation.getCurrentInventoryAssetPrice(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getAvailableInventoryAssetPrice') security.declareProtected(Permissions.AccessContentsInformation, 'getAvailableInventoryAssetPrice')
def getAvailableInventoryAssetPrice(**kw): def getAvailableInventoryAssetPrice(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
...@@ -366,7 +366,7 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -366,7 +366,7 @@ class Resource(XMLMatrix, CoreResource, Variated):
return self.portal_simulation.getAvailableInventoryAssetPrice(**kw) return self.portal_simulation.getAvailableInventoryAssetPrice(**kw)
security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryAssetPrice') security.declareProtected(Permissions.AccessContentsInformation, 'getFutureInventoryAssetPrice')
def getFutureInventoryAssetPrice(**kw): def getFutureInventoryAssetPrice(self, **kw):
""" """
Returns list of inventory grouped by section or site Returns list of inventory grouped by section or site
""" """
......
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