Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
b6f79b68
Commit
b6f79b68
authored
Oct 17, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Site_setupDummyMailHost: do not replace MailHost permanently
Similar to commit
cc7b1372
parent
744ccd3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
bt5/erp5_ui_test_core/ExtensionTemplateItem/MailHostUtils.py
bt5/erp5_ui_test_core/ExtensionTemplateItem/MailHostUtils.py
+9
-7
bt5/erp5_ui_test_core/bt/revision
bt5/erp5_ui_test_core/bt/revision
+1
-1
No files found.
bt5/erp5_ui_test_core/ExtensionTemplateItem/MailHostUtils.py
View file @
b6f79b68
...
...
@@ -26,14 +26,16 @@
#
##############################################################################
from
ExtensionClass
import
pmc_init_of
from
Products.ERP5Type.tests.utils
import
DummyMailHost
def
setupDummyMailHost
(
self
):
portal
=
self
.
getPortalObject
()
# Replace MailHost by DummyMailHost
if
'MailHost'
in
portal
.
objectIds
():
portal
.
manage_delObjects
([
'MailHost'
])
portal
.
_setObject
(
'MailHost'
,
DummyMailHost
(
'MailHost'
))
return
True
"""Replace Original Mail Host by Dummy Mail Host in a non-persistent way
Copied & pasted from ERP5TypeTestCaseMixin._setUpDummyMailHost
"""
cls
=
self
.
getPortalObject
().
portal
.
MailHost
.
__class__
if
not
issubclass
(
cls
,
DummyMailHostMixin
):
cls
.
__bases__
=
(
DummyMailHostMixin
,)
+
cls
.
__bases__
pmc_init_of
(
cls
)
return
True
bt5/erp5_ui_test_core/bt/revision
View file @
b6f79b68
56
\ No newline at end of file
57
\ 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