Commit d6ecc390 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Override getCell and newCell.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@689 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1077317c
...@@ -254,6 +254,25 @@ Une ligne tarifaire.""" ...@@ -254,6 +254,25 @@ Une ligne tarifaire."""
""" """
return XMLMatrix.getCellValueList(self, base_id=base_id) 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 # For generation of matrix lines
security.declareProtected( Permissions.ModifyPortalContent, '_setVariationCategoryList' ) security.declareProtected( Permissions.ModifyPortalContent, '_setVariationCategoryList' )
......
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