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
140
Merge Requests
140
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
3fef2282
Commit
3fef2282
authored
Mar 22, 2021
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
fa189df2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+5
-1
product/ERP5Type/tests/ProcessingNodeTestCase.py
product/ERP5Type/tests/ProcessingNodeTestCase.py
+3
-2
No files found.
product/ERP5/ERP5Site.py
View file @
3fef2282
...
...
@@ -44,6 +44,7 @@ from Products.ERP5Type.dynamic.portal_type_class import synchronizeDynamicModule
from
Products.ERP5Type.mixin.response_header_generator
import
ResponseHeaderGenerator
from
zLOG
import
LOG
,
INFO
,
WARNING
,
ERROR
from
zExceptions
import
BadRequest
from
string
import
join
import
os
import
warnings
...
...
@@ -2255,7 +2256,10 @@ class ERP5Generator(PortalGenerator):
workflow_list
=
[
'business_template_building_workflow'
,
'business_template_installation_workflow'
]
tool
=
p
.
portal_workflow
tool
.
manage_delObjects
(
filter
(
tool
.
hasObject
,
workflow_list
))
try
:
tool
.
manage_delObjects
(
filter
(
tool
.
hasObject
,
workflow_list
))
except
BadRequest
:
pass
self
.
bootstrap
(
tool
,
'erp5_core'
,
'WorkflowTemplateItem'
,
workflow_list
)
tool
.
setChainForPortalTypes
((
'Business Template'
,),
workflow_list
)
...
...
product/ERP5Type/tests/ProcessingNodeTestCase.py
View file @
3fef2282
...
...
@@ -5,6 +5,7 @@ from UserDict import IterableUserDict
import
Lifetime
import
transaction
from
Testing
import
ZopeTestCase
from
ZServer.Testing
import
utils
from
ZODB.POSException
import
ConflictError
from
zLOG
import
LOG
,
ERROR
from
Products.CMFActivity.Activity.Queue
import
VALIDATION_ERROR_DELAY
...
...
@@ -147,7 +148,7 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
def
startZServer
(
self
,
verbose
=
False
):
"""Start HTTP ZServer in background"""
utils
=
ZopeTestCase
.
utils
#
utils = ZopeTestCase.utils
if
utils
.
_Z2HOST
is
None
:
from
Products.ERP5Type.tests.runUnitTest
import
log_directory
log
=
os
.
path
.
join
(
log_directory
,
"Z2.log"
)
...
...
@@ -239,7 +240,7 @@ class ProcessingNodeTestCase(ZopeTestCase.TestCase):
@
classmethod
def
unregisterNode
(
cls
):
if
ZopeTestCase
.
utils
.
_Z2HOST
is
not
None
:
if
utils
.
_Z2HOST
is
not
None
:
self
=
cls
(
'unregisterNode'
)
self
.
app
=
self
.
_app
()
self
.
_registerNode
(
distributing
=
0
,
processing
=
0
)
...
...
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