Commit 510ec8f0 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.Core.Folder: Reduce the empty line nonsense.

parent 4eaea434
...@@ -36,11 +36,9 @@ from OFS.ObjectManager import ObjectManager, checkValidId ...@@ -36,11 +36,9 @@ from OFS.ObjectManager import ObjectManager, checkValidId
from zExceptions import BadRequest from zExceptions import BadRequest
from OFS.History import Historical from OFS.History import Historical
import ExtensionClass import ExtensionClass
from Products.CMFCore.exceptions import AccessControl_Unauthorized from Products.CMFCore.exceptions import AccessControl_Unauthorized
from Products.CMFCore.CMFCatalogAware import CMFCatalogAware from Products.CMFCore.CMFCatalogAware import CMFCatalogAware
from Products.CMFCore.PortalFolder import ContentFilter from Products.CMFCore.PortalFolder import ContentFilter
from Products.ERP5Type.Base import Base from Products.ERP5Type.Base import Base
from Products.ERP5Type.ConsistencyMessage import ConsistencyMessage from Products.ERP5Type.ConsistencyMessage import ConsistencyMessage
from Products.ERP5Type.CopySupport import CopyContainer from Products.ERP5Type.CopySupport import CopyContainer
...@@ -50,20 +48,16 @@ from Products.ERP5Type.Utils import sortValueList ...@@ -50,20 +48,16 @@ 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
try: try:
from Products.CMFCore.CMFBTreeFolder import CMFBTreeFolder from Products.CMFCore.CMFBTreeFolder import CMFBTreeFolder
except ImportError: except ImportError:
from Products.BTreeFolder2.CMFBTreeFolder import CMFBTreeFolder from Products.BTreeFolder2.CMFBTreeFolder import CMFBTreeFolder
from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2Base, BTreeFolder2 from Products.BTreeFolder2.BTreeFolder2 import BTreeFolder2Base, BTreeFolder2
try: try:
from Products.HBTreeFolder2.CMFHBTreeFolder import CMFHBTreeFolder from Products.HBTreeFolder2.CMFHBTreeFolder import CMFHBTreeFolder
from Products.HBTreeFolder2.HBTreeFolder2 import HBTreeFolder2Base from Products.HBTreeFolder2.HBTreeFolder2 import HBTreeFolder2Base
from Products.HBTreeFolder2.HBTreeFolder2 import HBTreeFolder2 from Products.HBTreeFolder2.HBTreeFolder2 import HBTreeFolder2
except ImportError: except ImportError:
class CMFHBTreeFolder: class CMFHBTreeFolder:
pass pass
...@@ -72,24 +66,15 @@ except ImportError: ...@@ -72,24 +66,15 @@ except ImportError:
class HBTreeFolder2: class HBTreeFolder2:
pass pass
from DateTime import DateTime from DateTime import DateTime
from random import randint from random import randint
import os import os
from zLOG import LOG, WARNING from zLOG import LOG, WARNING
import warnings import warnings
from urlparse import urlparse from urlparse import urlparse
REINDEX_SPLIT_COUNT = 100 # if folder containes more than this, reindexing should be splitted. REINDEX_SPLIT_COUNT = 100 # if folder containes more than this, reindexing should be splitted.
from Products.ERP5Type.Message import translateString from Products.ERP5Type.Message import translateString
# from Products.BTreeFolder2.BTreeFolder2 import _marker as BTreeMarker
# from Products.HBTreeFolder2.HBTreeFolder2 import _marker as HBTreeMarker
# Dummy Functions for update / upgrade # Dummy Functions for update / upgrade
def dummyFilter(object,REQUEST=None): def dummyFilter(object,REQUEST=None):
return 1 return 1
......
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