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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
d54de962
Commit
d54de962
authored
May 13, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Utils.py: revert reorganised imports.
parent
8330baff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
product/ERP5Type/Utils.py
product/ERP5Type/Utils.py
+17
-11
No files found.
product/ERP5Type/Utils.py
View file @
d54de962
...
...
@@ -28,26 +28,33 @@
##############################################################################
# Required modules - some modules are imported later to prevent circular deadlocks
import
inspect
import
os
import
persistent
import
re
import
string
import
sys
import
time
import
warnings
from
AccessControl
import
ModuleSecurityInfo
,
getSecurityManager
import
sys
import
inspect
import
persistent
from
hashlib
import
md5
as
md5_new
,
sha1
as
sha_new
from
Products.ERP5Type.Globals
import
package_home
from
Products.ERP5Type.Globals
import
DevelopmentMode
from
Acquisition
import
aq_base
from
Acquisition
import
aq_inner
from
Acquisition
import
aq_parent
from
Acquisition
import
aq_self
from
AccessControl
import
ModuleSecurityInfo
from
AccessControl.SecurityInfo
import
allow_class
from
AccessControl
import
getSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
from
Acquisition
import
aq_base
,
aq_inner
,
aq_parent
,
aq_self
from
hashlib
import
md5
as
md5_new
,
sha1
as
sha_new
from
Products.CMFCore
import
utils
from
Products.CMFCore.DirectoryView
import
registerDirectory
from
Products.CMFCore.Expression
import
Expression
from
Products.CMFCore.DirectoryView
import
registerDirectory
from
Products.CMFCore.utils
import
getToolByName
from
Products.
ERP5Type.Globals
import
package_home
,
DevelopmentMod
e
from
Products.PageTemplates.Expressions
import
getEngine
,
SecureModuleImporter
from
Products.
PageTemplates.Expressions
import
getEngin
e
from
Products.PageTemplates.Expressions
import
SecureModuleImporter
from
Products.ZCatalog.Lazy
import
LazyMap
try
:
...
...
@@ -423,7 +430,6 @@ def checkPythonSourceCode(source_code_str):
allow passing a string) and this should probably return a proper
ERP5 object rather than a dict...
"""
if
not
source_code_str
:
return
[]
...
...
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