Commit 27b0a4c0 authored by Rafael Monnerat's avatar Rafael Monnerat

ERP5Configurator: Tinny style changes.

parent f51876bb
......@@ -56,8 +56,7 @@ class AccountConfiguratorItem(ConfiguratorItemMixin, XMLObject):
, PropertySheet.Account )
def _build(self, business_configuration):
portal = self.getPortalObject()
account_module = portal.account_module
account_module = self.getPortalObject().account_module
extra_kw = {}
account_id = getattr(self, 'account_id', None)
......
......@@ -60,13 +60,11 @@ class AccountingPeriodConfiguratorItem(ConfiguratorItemMixin, XMLObject):
organisation_id = business_configuration.\
getGlobalConfigurationAttr('organisation_id')
organisation = portal.organisation_module._getOb(organisation_id)
period = organisation.newContent(
portal_type='Accounting Period',
start_date=self.getStartDate(),
stop_date=self.getStopDate(),
short_title=self.getShortTitle(),
title=self.getTitle())
organisation.newContent(portal_type='Accounting Period',
start_date=self.getStartDate(),
stop_date=self.getStopDate(),
short_title=self.getShortTitle(),
title=self.getTitle())
# no need to 'install' in the business template, because it's contain as
# subobject of an organisation we already added.
......@@ -58,7 +58,7 @@ class PermissionConfiguratorItem(ConfiguratorItemMixin, XMLObject):
template_module_id_list = []
module_permissions_map = {}
sheets_dict = business_configuration.ConfigurationTemplate_readOOCalcFile(\
self.filename)
self.filename)
for module_id, permissions in sheets_dict.items():
module_permissions = {}
for permission in permissions:
......
......@@ -531,7 +531,6 @@ class TestLiveConfiguratorWorkflowMixin(SecurityTestCase):
bt5_title_list = self.portal.portal_templates.getInstalledBusinessTemplateTitleList()
expected_list = self.standard_bt5_list + bt5_tuple
self.assertEquals([i for i in expected_list if i not in bt5_title_list], [])
self.assertFalse(bc_id in bt5_title_list)
......
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