Commit 2b454bf0 authored by Sebastien Robin's avatar Sebastien Robin

newCellContent should support **kw


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2400 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent deeabb51
...@@ -490,7 +490,7 @@ identify a bank account.""" ...@@ -490,7 +490,7 @@ identify a bank account."""
return result return result
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -135,7 +135,7 @@ Une ligne tarifaire.""" ...@@ -135,7 +135,7 @@ Une ligne tarifaire."""
# Cell Related # Cell Related
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -64,7 +64,7 @@ class TempDeliveryCell(DeliveryCell): ...@@ -64,7 +64,7 @@ class TempDeliveryCell(DeliveryCell):
class XMLMatrix(TempXMLMatrix): class XMLMatrix(TempXMLMatrix):
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -253,7 +253,7 @@ Une ligne tarifaire.""" ...@@ -253,7 +253,7 @@ Une ligne tarifaire."""
# Cell Related # Cell Related
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id, **kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -130,7 +130,7 @@ Une ligne tarifaire.""" ...@@ -130,7 +130,7 @@ Une ligne tarifaire."""
# Cell Related # Cell Related
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -228,7 +228,7 @@ class InvoiceTransactionRule(Rule, XMLMatrix): ...@@ -228,7 +228,7 @@ class InvoiceTransactionRule(Rule, XMLMatrix):
# Matrix related # Matrix related
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -129,7 +129,7 @@ class PaySheetLine(InvoiceLine): ...@@ -129,7 +129,7 @@ class PaySheetLine(InvoiceLine):
# Cell Related # Cell Related
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -116,7 +116,7 @@ Une ligne tarifaire.""" ...@@ -116,7 +116,7 @@ Une ligne tarifaire."""
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -45,13 +45,13 @@ class SupplyLineMixin(ExtensionClass.Base): ...@@ -45,13 +45,13 @@ class SupplyLineMixin(ExtensionClass.Base):
security = ClassSecurityInfo() security = ClassSecurityInfo()
# Cell Related # Cell Related
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) # security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): # def newCellContent(self, id):
""" # """
This method can be overriden # This method can be overriden
""" # """
self.invokeFactory(type_name="Supply Cell",id=id) # self.invokeFactory(type_name="Supply Cell",id=id)
return self.get(id) # return self.get(id)
security.declareProtected( Permissions.ModifyPortalContent, 'hasCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'hasCellContent' )
def hasCellContent(self, base_id='path'): def hasCellContent(self, base_id='path'):
......
...@@ -398,7 +398,7 @@ identify a bank account.""" ...@@ -398,7 +398,7 @@ identify a bank account."""
return result return result
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
...@@ -127,7 +127,7 @@ A VariatedProperty.""" ...@@ -127,7 +127,7 @@ A VariatedProperty."""
security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' ) security.declareProtected( Permissions.ModifyPortalContent, 'newCellContent' )
def newCellContent(self, id): def newCellContent(self, id,**kw):
""" """
This method can be overriden This method can be overriden
""" """
......
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