From 546e3f3527b89c3c9e77e7571befcbb6d60594ee Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Fri, 23 Jan 2004 15:43:50 +0000
Subject: [PATCH] some methods added to handle quantity_unit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@276 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/Coramy/Document/Assortiment.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/product/Coramy/Document/Assortiment.py b/product/Coramy/Document/Assortiment.py
index fb514fd355..97b72bfac6 100755
--- a/product/Coramy/Document/Assortiment.py
+++ b/product/Coramy/Document/Assortiment.py
@@ -148,3 +148,21 @@ un modele..."""
       self._setTitle(value)
       self.reindexObject()
 
+
+    security.declareProtected(Permissions.View, 'getDefaultQuantityUnit')
+    def getDefaultQuantityUnit(self):
+      # Requires for Assorted Resource XXX temp patch until getAggregated methods use real classes instead of dicts
+      # and access props/cats through accessors
+      return "Unite"
+
+    security.declareProtected(Permissions.View, 'getQuantityUnit')
+    def getQuantityUnit(self):
+      # Requires for Assorted Resource XXX temp patch until getAggregated methods use real classes instead of dicts
+      # and access props/cats through accessors
+      return "Unite"
+
+    security.declareProtected(Permissions.View, 'getQuantityUnitList')
+    def getQuantityUnitList(self):
+      # Requires for Assorted Resource XXX temp patch until getAggregated methods use real classes instead of dicts
+      # and access props/cats through accessors
+      return ["Unite"]
-- 
2.30.9