Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
138
Merge Requests
138
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
c9203485
Commit
c9203485
authored
Mar 28, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Folder: change syntax for base classes"
This reverts commit
77286e35
. SyntaxError on py2
parent
3c13cffe
Pipeline
#33730
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
product/ERP5Type/Core/Folder.py
product/ERP5Type/Core/Folder.py
+9
-16
No files found.
product/ERP5Type/Core/Folder.py
View file @
c9203485
...
...
@@ -682,22 +682,15 @@ _HANDLER_LIST = (
_BROKEN_BTREE_HANDLER
=
'CMFBTreeFolderHandler'
# Import order:
_Folder_Bases
=
(
# - FolderMixIn can be about anywhere, let's put it first.
FolderMixIn
,
# - our CopyContainer before ObjectManager, as ObjectManager inherits from
# OFS.CopySupport.CopyContainer, which methods we do not want.
CopyContainer
,
# - ObjectManager before Base, as Base is only a PropertyManager (no
# subobjects) and inheriting from ObjectManager overrides the necessary
# methods.
ObjectManager
,
# - Base before generic container types, to allow customising their methods.
Base
,
# - container types, because instances of Folder must be instances of these.
OFSFolder2
,
CMFBTreeFolder
,
CMFHBTreeFolder
)
class
Folder
(
*
_Folder_Bases
):
# - FolderMixIn can be about anywhere, let's put it first.
# - our CopyContainer before ObjectManager, as ObjectManager inherits from
# OFS.CopySupport.CopyContainer, which methods we do not want.
# - ObjectManager before Base, as Base is only a PropertyManager (no
# subobjects) and inheriting from ObjectManager overrides the necessary
# methods.
# - Base before generic container types, to allow customising their methods.
# - container types, because instances of Folder must be instances of these.
class
Folder
(
FolderMixIn
,
CopyContainer
,
ObjectManager
,
Base
,
OFSFolder2
,
CMFBTreeFolder
,
CMFHBTreeFolder
):
"""
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