Commit 9a28cb13 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Add JSONRepresentableMixin as one of the base class for Base and Folder classes

parent 62261452
...@@ -86,6 +86,7 @@ from Products.ERP5Type.Accessor.TypeDefinition import asDate ...@@ -86,6 +86,7 @@ from Products.ERP5Type.Accessor.TypeDefinition import asDate
from Products.ERP5Type.Message import Message from Products.ERP5Type.Message import Message
from Products.ERP5Type.ConsistencyMessage import ConsistencyMessage from Products.ERP5Type.ConsistencyMessage import ConsistencyMessage
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod, super_user from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod, super_user
from Products.ERP5Type.mixin.json_representable import JSONRepresentableMixin
from zope.interface import classImplementsOnly, implementedBy from zope.interface import classImplementsOnly, implementedBy
...@@ -675,7 +676,8 @@ class Base( CopyContainer, ...@@ -675,7 +676,8 @@ class Base( CopyContainer,
ActiveObject, ActiveObject,
OFS.History.Historical, OFS.History.Historical,
ERP5PropertyManager, ERP5PropertyManager,
PropertyTranslatableBuiltInDictMixIn PropertyTranslatableBuiltInDictMixIn,
JSONRepresentableMixin,
): ):
""" """
This is the base class for all ERP5 Zope objects. This is the base class for all ERP5 Zope objects.
......
...@@ -48,6 +48,8 @@ from Products.ERP5Type.Utils import sortValueList ...@@ -48,6 +48,8 @@ from Products.ERP5Type.Utils import sortValueList
from Products.ERP5Type import Permissions from Products.ERP5Type import Permissions
from Products.ERP5Type.Globals import InitializeClass from Products.ERP5Type.Globals import InitializeClass
from Products.ERP5Type.Accessor import Base as BaseAccessor from Products.ERP5Type.Accessor import Base as BaseAccessor
from Products.ERP5Type.mixin.json_representable import JSONRepresentableMixin
try: try:
from Products.CMFCore.CMFBTreeFolder import CMFBTreeFolder from Products.CMFCore.CMFBTreeFolder import CMFBTreeFolder
except ImportError: except ImportError:
...@@ -524,7 +526,8 @@ HBTREE_HANDLER = 2 ...@@ -524,7 +526,8 @@ HBTREE_HANDLER = 2
InitializeClass(FolderMixIn) InitializeClass(FolderMixIn)
class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn): class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
JSONRepresentableMixin,):
""" """
A Folder is a subclass of Base but not of XMLObject. A Folder is a subclass of Base but not of XMLObject.
Folders are not considered as documents and are therefore Folders are not considered as documents and are therefore
......
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