From d6ecc3909f9cd99cf92a180c41d816cef49df0f9 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Mon, 19 Apr 2004 08:57:01 +0000 Subject: [PATCH] Override getCell and newCell. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@689 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/DeliveryLine.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/product/ERP5/Document/DeliveryLine.py b/product/ERP5/Document/DeliveryLine.py index 3d4a7226b5..dc543a3331 100755 --- a/product/ERP5/Document/DeliveryLine.py +++ b/product/ERP5/Document/DeliveryLine.py @@ -254,6 +254,25 @@ Une ligne tarifaire.""" """ return XMLMatrix.getCellValueList(self, base_id=base_id) + security.declareProtected( Permissions.View, 'getCell' ) + def getCell(self, *kw , **kwd): + """ + This method can be overriden + """ + if 'base_id' not in kwd: + kwd['base_id'] = 'movement' + + return XMLMatrix.getCell(self, *kw, **kwd) + + security.declareProtected( Permissions.ModifyPortalContent, 'newCell' ) + def newCell(self, *kw, **kwd): + """ + This method creates a new cell + """ + if 'base_id' not in kwd: + kwd['base_id'] = 'movement' + + return XMLMatrix.newCell(self, *kw, **kwd) # For generation of matrix lines security.declareProtected( Permissions.ModifyPortalContent, '_setVariationCategoryList' ) -- 2.30.9