Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
9a28cb13
Commit
9a28cb13
authored
Sep 26, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config: Add JSONRepresentableMixin as one of the base class for Base and Folder classes
parent
62261452
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+3
-1
product/ERP5Type/Core/Folder.py
product/ERP5Type/Core/Folder.py
+4
-1
No files found.
product/ERP5Type/Base.py
View file @
9a28cb13
...
...
@@ -86,6 +86,7 @@ from Products.ERP5Type.Accessor.TypeDefinition import asDate
from
Products.ERP5Type.Message
import
Message
from
Products.ERP5Type.ConsistencyMessage
import
ConsistencyMessage
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
,
super_user
from
Products.ERP5Type.mixin.json_representable
import
JSONRepresentableMixin
from
zope.interface
import
classImplementsOnly
,
implementedBy
...
...
@@ -675,7 +676,8 @@ class Base( CopyContainer,
ActiveObject
,
OFS
.
History
.
Historical
,
ERP5PropertyManager
,
PropertyTranslatableBuiltInDictMixIn
PropertyTranslatableBuiltInDictMixIn
,
JSONRepresentableMixin
,
):
"""
This is the base class for all ERP5 Zope objects.
...
...
product/ERP5Type/Core/Folder.py
View file @
9a28cb13
...
...
@@ -48,6 +48,8 @@ from Products.ERP5Type.Utils import sortValueList
from
Products.ERP5Type
import
Permissions
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Accessor
import
Base
as
BaseAccessor
from
Products.ERP5Type.mixin.json_representable
import
JSONRepresentableMixin
try
:
from
Products.CMFCore.CMFBTreeFolder
import
CMFBTreeFolder
except
ImportError
:
...
...
@@ -524,7 +526,8 @@ HBTREE_HANDLER = 2
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.
Folders are not considered as documents and are therefore
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment