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 = ( ...@@ -682,22 +682,15 @@ _HANDLER_LIST = (
_BROKEN_BTREE_HANDLER = 'CMFBTreeFolderHandler' _BROKEN_BTREE_HANDLER = 'CMFBTreeFolderHandler'
# Import order: # Import order:
_Folder_Bases = ( # - FolderMixIn can be about anywhere, let's put it first.
# - FolderMixIn can be about anywhere, let's put it first. # - our CopyContainer before ObjectManager, as ObjectManager inherits from
FolderMixIn, # OFS.CopySupport.CopyContainer, which methods we do not want.
# - our CopyContainer before ObjectManager, as ObjectManager inherits from # - ObjectManager before Base, as Base is only a PropertyManager (no
# OFS.CopySupport.CopyContainer, which methods we do not want. # subobjects) and inheriting from ObjectManager overrides the necessary
CopyContainer, # methods.
# - ObjectManager before Base, as Base is only a PropertyManager (no # - Base before generic container types, to allow customising their methods.
# subobjects) and inheriting from ObjectManager overrides the necessary # - container types, because instances of Folder must be instances of these.
# methods. class Folder(FolderMixIn, CopyContainer, ObjectManager, Base, OFSFolder2, CMFBTreeFolder, CMFHBTreeFolder):
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):
""" """
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