Commit cad7e9c1 authored by Sebastien Robin's avatar Sebastien Robin

synchronize if a document is frozen or not


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1131 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3521a70f
......@@ -42,6 +42,12 @@ class PatchedCPSDocument(CPSDocument):
'type' : 'object'
}
)
property_sheet.append(
{
'id' : 'cps_frozen',
'type' : 'int'
}
)
type_info = self.getTypeInfo()
field_list = []
if type_info is not None:
......@@ -110,6 +116,23 @@ class PatchedCPSDocument(CPSDocument):
self._setOb(".cps_layouts",data[0])
self._setOb(".cps_schemas",data[1])
security.declarePrivate('setCpsFrozen' )
def setCpsFrozen(self, data):
"""
setter for cps frozen property in order to now
if an object is frozen or not
"""
if data is not None:
self._cps_frozen = data
security.declarePrivate('getCpsFrozen' )
def getCpsFrozen(self):
"""
getter for cps frozen property in order to now
if an object is frozen or not
"""
return getattr(self,'_cps_frozen',0)
security.declarePrivate('_setProperty' )
def _setProperty(self, key, value, type='string'):
"""
......
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