Commit 88ebd8cd authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.Base: Do not inherit from deprecated class.

parent f247d3a3
Pipeline #7859 failed with stage
...@@ -49,8 +49,6 @@ from persistent import Persistent ...@@ -49,8 +49,6 @@ from persistent import Persistent
from persistent.TimeStamp import TimeStamp from persistent.TimeStamp import TimeStamp
from zExceptions import NotFound, Unauthorized from zExceptions import NotFound, Unauthorized
from ZopePatch import ERP5PropertyManager
from Products.CMFCore.PortalContent import PortalContent from Products.CMFCore.PortalContent import PortalContent
from Products.CMFCore.Expression import Expression from Products.CMFCore.Expression import Expression
from Products.CMFCore.utils import getToolByName, _checkConditionalGET, _setCacheHeaders, _ViewEmulator from Products.CMFCore.utils import getToolByName, _checkConditionalGET, _setCacheHeaders, _ViewEmulator
...@@ -712,7 +710,7 @@ class Base( CopyContainer, ...@@ -712,7 +710,7 @@ class Base( CopyContainer,
PortalContent, PortalContent,
ActiveObject, ActiveObject,
OFS.History.Historical, OFS.History.Historical,
ERP5PropertyManager, PropertyManager,
PropertyTranslatableBuiltInDictMixIn, PropertyTranslatableBuiltInDictMixIn,
JSONRepresentableMixin, JSONRepresentableMixin,
): ):
...@@ -1278,9 +1276,9 @@ class Base( CopyContainer, ...@@ -1278,9 +1276,9 @@ class Base( CopyContainer,
result = [result] result = [result]
return result return result
if d is not _MARKER: if d is not _MARKER:
return ERP5PropertyManager.getProperty(self, key, d=d, return PropertyManager.getProperty(self, key, d=d,
local_properties=True, **kw) local_properties=True, **kw)
return ERP5PropertyManager.getProperty(self, key, return PropertyManager.getProperty(self, key,
local_properties=True, **kw) local_properties=True, **kw)
security.declareProtected( Permissions.AccessContentsInformation, 'getPropertyList' ) security.declareProtected( Permissions.AccessContentsInformation, 'getPropertyList' )
...@@ -1356,11 +1354,11 @@ class Base( CopyContainer, ...@@ -1356,11 +1354,11 @@ class Base( CopyContainer,
# If we are here, this means we do not use a property that # If we are here, this means we do not use a property that
# comes from an ERP5 PropertySheet, we should use the # comes from an ERP5 PropertySheet, we should use the
# PropertyManager # PropertyManager
if ERP5PropertyManager.hasProperty(self,key, local_properties=True): if PropertyManager.hasProperty(self,key, local_properties=True):
ERP5PropertyManager._updateProperty(self, key, value, PropertyManager._updateProperty(self, key, value,
local_properties=True) local_properties=True)
else: else:
ERP5PropertyManager._setProperty(self, key, value, type=type) PropertyManager._setProperty(self, key, value, type=type)
# This should not be there, because this ignore all checks made by # This should not be there, because this ignore all checks made by
# the PropertyManager. If there is problems, please complain to # the PropertyManager. If there is problems, please complain to
# seb@nexedi.com # seb@nexedi.com
...@@ -1390,7 +1388,7 @@ class Base( CopyContainer, ...@@ -1390,7 +1388,7 @@ class Base( CopyContainer,
# Finaly use standard PropertyManager # Finaly use standard PropertyManager
#LOG("Changing attr: ",0, key) #LOG("Changing attr: ",0, key)
#try: #try:
ERP5PropertyManager._setPropValue(self, key, value) PropertyManager._setPropValue(self, key, value)
#except ConflictError: #except ConflictError:
# raise # raise
# This should not be there, because this ignore all checks made by # This should not be there, because this ignore all checks made by
......
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