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
137
Merge Requests
137
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
ec16af67
Commit
ec16af67
authored
Feb 26, 2025
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ComponentTool: replace zLOG by logging
parent
c65b1dcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ERP5Type/Tool/ComponentTool.py
product/ERP5Type/Tool/ComponentTool.py
+5
-4
No files found.
product/ERP5Type/Tool/ComponentTool.py
View file @
ec16af67
...
...
@@ -28,6 +28,7 @@
#
##############################################################################
import
logging
from
six
import
string_types
as
basestring
from
types
import
ModuleType
...
...
@@ -40,8 +41,6 @@ from AccessControl.Permission import Permission
from
Products.ERP5Type.Tool.BaseTool
import
BaseTool
from
Products.ERP5Type.dynamic
import
aq_method_lock
from
Products.ERP5Type.TransactionalVariable
import
getTransactionalVariable
from
zLOG
import
LOG
,
INFO
,
WARNING
import
six
global_stream
=
None
...
...
@@ -50,6 +49,8 @@ from DateTime import DateTime
DEFAULT_TEST_TEMPLATE_COPYRIGHT
=
"Copyright (c) 2002-%s Nexedi SA and "
\
"Contributors. All Rights Reserved."
%
DateTime
().
year
()
logger
=
logging
.
getLogger
(
__name__
)
live_test_running
=
False
last_sync
=
-
1
class
ComponentTool
(
BaseTool
):
...
...
@@ -143,7 +144,7 @@ class ComponentTool(BaseTool):
last_sync
=
cookie
LOG
(
"ERP5Type.Tool.ComponentTool"
,
INFO
,
"Resetting Components"
)
logger
.
info
(
"Resetting Components"
)
# Make sure that it is not possible to load Components or load Portal Type
# class when Components are reset through aq_method_lock
...
...
@@ -285,7 +286,7 @@ class Test(ERP5TypeTestCase):
global
live_test_running
self
.
serialize
()
if
live_test_running
:
LOG
(
'ComponentTool'
,
INFO
,
'Live test already running'
)
logger
.
info
(
'Live test already running'
)
return
''
global_stream
=
StringIO
()
...
...
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