Commit 4d426a9f authored by Romain Courteaud's avatar Romain Courteaud

slapos_crm: drop template_member

parent d4850c81
...@@ -1761,8 +1761,8 @@ class TestSlapOSCrmMonitoringCheckComputeNodeSoftwareInstallation(SlapOSTestCase ...@@ -1761,8 +1761,8 @@ class TestSlapOSCrmMonitoringCheckComputeNodeSoftwareInstallation(SlapOSTestCase
class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort): class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort):
def _makeInstanceTree(self): def _makeInstanceTree(self):
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
instance_tree = self.portal\ instance_tree = self.portal\
.instance_tree_module\ .instance_tree_module\
.newContent(portal_type="Instance Tree") .newContent(portal_type="Instance Tree")
...@@ -1995,8 +1995,8 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort): ...@@ -1995,8 +1995,8 @@ class TestSlapOSCrmMonitoringCheckInstanceInError(SlapOSTestCaseMixinWithAbort):
class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort): class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort):
def _makeSupportRequest(self): def _makeSupportRequest(self):
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
""" """
support_request = self.portal.restrictedTraverse( support_request = self.portal.restrictedTraverse(
self.portal.portal_preferences.getPreferredSupportRequestTemplate()).\ self.portal.portal_preferences.getPreferredSupportRequestTemplate()).\
...@@ -2015,8 +2015,8 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort): ...@@ -2015,8 +2015,8 @@ class TestSlaposCrmUpdateSupportRequestState(SlapOSTestCaseMixinWithAbort):
return support_request return support_request
def _makeInstanceTree(self): def _makeInstanceTree(self):
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
instance_tree = self.portal\ instance_tree = self.portal\
.instance_tree_module\ .instance_tree_module\
.newContent(portal_type="Instance Tree") .newContent(portal_type="Instance Tree")
......
...@@ -57,8 +57,8 @@ class TestCRMSkinsMixin(SlapOSTestCaseMixinWithAbort): ...@@ -57,8 +57,8 @@ class TestCRMSkinsMixin(SlapOSTestCaseMixinWithAbort):
return assignment return assignment
def _makeInstanceTree(self): def _makeInstanceTree(self):
person = self.portal.person_module.template_member\ person = self.portal.person_module\
.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Person")
instance_tree = self.portal\ instance_tree = self.portal\
.instance_tree_module\ .instance_tree_module\
.newContent(portal_type="Instance Tree") .newContent(portal_type="Instance Tree")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment