Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Léo-Paul Géneau
slapos.core
Commits
5e3b473e
Commit
5e3b473e
authored
Nov 16, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch portal type class to reduce side effect
parent
de9fcdf3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
...stTemplateItem/testSlapOSAccountingInteractionWorkflow.py
+7
-4
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
View file @
5e3b473e
...
@@ -172,9 +172,11 @@ class TestSlapOSAccountingInteractionWorkflow(testSlapOSMixin):
...
@@ -172,9 +172,11 @@ class TestSlapOSAccountingInteractionWorkflow(testSlapOSMixin):
return
self
.
fixConsistency_call
()
return
self
.
fixConsistency_call
()
# Replace serialize by a dummy method
# Replace serialize by a dummy method
from
Products.ERP5Type.Base
import
Base
HostingSubscriptionClass
=
self
.
portal
.
portal_types
.
getPortalTypeClass
(
Base
.
fixConsistency_call
=
Base
.
fixConsistency
'Hosting Subscription'
)
Base
.
fixConsistency
=
verify_fixConsistency_call
HostingSubscriptionClass
.
fixConsistency_call
=
HostingSubscriptionClass
.
\
fixConsistency
HostingSubscriptionClass
.
fixConsistency
=
verify_fixConsistency_call
try
:
try
:
# manage_afterAdd
# manage_afterAdd
...
@@ -189,7 +191,8 @@ class TestSlapOSAccountingInteractionWorkflow(testSlapOSMixin):
...
@@ -189,7 +191,8 @@ class TestSlapOSAccountingInteractionWorkflow(testSlapOSMixin):
template_hosting_subscription
.
Base_createCloneDocument
,
template_hosting_subscription
.
Base_createCloneDocument
,
batch_mode
=
1
)
batch_mode
=
1
)
finally
:
finally
:
Base
.
fixConsistency
=
Base
.
fixConsistency_call
self
.
portal
.
portal_types
.
resetDynamicDocumentsOnceAtTransactionBoundary
()
transaction
.
commit
()
def
_simulateDelivery_calculate
(
self
):
def
_simulateDelivery_calculate
(
self
):
script_name
=
'Delivery_calculate'
script_name
=
'Delivery_calculate'
...
...
master/bt5/slapos_accounting/bt/revision
View file @
5e3b473e
56
57
\ No newline at end of file
\ No newline at end of file
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