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
Carlos Ramos Carreño
erp5
Commits
1dc58a1f
Commit
1dc58a1f
authored
Mar 02, 2023
by
Arnaud Fontaine
Committed by
Jérome Perrin
Mar 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zope4: ZServer removal: Remove old code starting ZServer.
parent
411e6e1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
product/ERP5Type/tests/ProcessingNodeTestCase.py
product/ERP5Type/tests/ProcessingNodeTestCase.py
+1
-18
No files found.
product/ERP5Type/tests/ProcessingNodeTestCase.py
View file @
1dc58a1f
...
@@ -156,7 +156,7 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
...
@@ -156,7 +156,7 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
from
Products.ERP5Type.tests.runUnitTest
import
log_directory
from
Products.ERP5Type.tests.runUnitTest
import
log_directory
log
=
os
.
path
.
join
(
log_directory
,
"Z2.log"
)
log
=
os
.
path
.
join
(
log_directory
,
"Z2.log"
)
message
=
"Running %s server at %s:%s
\
n
"
message
=
"Running %s server at %s:%s
\
n
"
if
int
(
os
.
environ
.
get
(
'erp5_wsgi'
,
0
))
:
if
True
:
from
Products.ERP5.bin.zopewsgi
import
app_wrapper
,
createServer
from
Products.ERP5.bin.zopewsgi
import
app_wrapper
,
createServer
sockets
=
[]
sockets
=
[]
server_type
=
'HTTP'
server_type
=
'HTTP'
...
@@ -198,23 +198,6 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
...
@@ -198,23 +198,6 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
t
=
Thread
(
target
=
hs
.
run
)
t
=
Thread
(
target
=
hs
.
run
)
t
.
setDaemon
(
1
)
t
.
setDaemon
(
1
)
t
.
start
()
t
.
start
()
else
:
_print
=
lambda
hs
:
verbose
and
ZopeTestCase
.
_print
(
message
%
(
hs
.
server_protocol
,
hs
.
server_name
,
hs
.
server_port
))
try
:
hs
=
createZServer
(
log
)
except
RuntimeError
as
e
:
ZopeTestCase
.
_print
(
str
(
e
))
else
:
ProcessingNodeTestCase
.
_server_address
=
hs
.
server_name
,
hs
.
server_port
_print
(
hs
)
try
:
_print
(
createZServer
(
log
,
zserver_type
=
'webdav'
))
except
RuntimeError
as
e
:
ZopeTestCase
.
_print
(
'Could not start webdav zserver: %s
\
n
'
%
e
)
t
=
Thread
(
target
=
Lifetime
.
loop
)
t
.
setDaemon
(
1
)
t
.
start
()
from
Products.CMFActivity
import
ActivityTool
from
Products.CMFActivity
import
ActivityTool
# Reset, in case that getServerAddress was already called,
# Reset, in case that getServerAddress was already called,
# in which case, the value was ('', '')
# in which case, the value was ('', '')
...
...
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