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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
510ec8f0
Commit
510ec8f0
authored
Oct 20, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type.Core.Folder: Reduce the empty line nonsense.
parent
4eaea434
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
product/ERP5Type/Core/Folder.py
product/ERP5Type/Core/Folder.py
+0
-15
No files found.
product/ERP5Type/Core/Folder.py
View file @
510ec8f0
...
@@ -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
...
...
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