Commit c9203485 authored by Jérome Perrin's avatar Jérome Perrin

Revert "Folder: change syntax for base classes"

This reverts commit 77286e35.

SyntaxError on py2
parent 3c13cffe
Pipeline #33730 failed with stage
in 0 seconds
......@@ -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
......
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