Commit 77084754 authored by Jérome Perrin's avatar Jérome Perrin

fix long lines and indentation with tabs


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8472 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2256c9ed
...@@ -23,7 +23,7 @@ from Products.CMFCore.utils import getToolByName ...@@ -23,7 +23,7 @@ from Products.CMFCore.utils import getToolByName
from Products.ERP5Type.Utils import getLocalPropertySheetList, removeLocalPropertySheet from Products.ERP5Type.Utils import getLocalPropertySheetList, removeLocalPropertySheet
from Products.ERP5Type.Utils import getLocalDocumentList, removeLocalDocument from Products.ERP5Type.Utils import getLocalDocumentList, removeLocalDocument
from Products.ERP5Type.Utils import getLocalConstraintList, removeLocalConstraint from Products.ERP5Type.Utils import getLocalConstraintList, removeLocalConstraint
from zLOG import LOG from zLOG import LOG, DEBUG
try: try:
from transaction import get as get_transaction from transaction import get as get_transaction
...@@ -232,7 +232,8 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -232,7 +232,8 @@ class ERP5TypeTestCase(PortalTestCase):
if os.path.exists(path): if os.path.exists(path):
template = path template = path
else: else:
# Otherwise, look at sub-directories. This is for backward-compatibility. # Otherwise, look at sub-directories.
# This is for backward-compatibility.
path = os.path.join(INSTANCE_HOME, 'bt5', '*', template) path = os.path.join(INSTANCE_HOME, 'bt5', '*', template)
template_list = glob(path) template_list = glob(path)
if len(template_list) == 0: if len(template_list) == 0:
...@@ -253,9 +254,12 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -253,9 +254,12 @@ class ERP5TypeTestCase(PortalTestCase):
light_install = self.enableLightInstall() light_install = self.enableLightInstall()
create_activities = self.enableActivityTool() create_activities = self.enableActivityTool()
hot_reindexing = self.enableHotReindexing() hot_reindexing = self.enableHotReindexing()
setupERP5Site(business_template_list = new_template_list,light_install=light_install, setupERP5Site(business_template_list=new_template_list,
portal_name = self.getPortalName(),title = self.getTitle(), light_install=light_install,
create_activities=create_activities,hot_reindexing=hot_reindexing) portal_name=self.getPortalName(),
title=self.getTitle(),
create_activities=create_activities,
hot_reindexing=hot_reindexing)
PortalTestCase.setUp(self) PortalTestCase.setUp(self)
def afterSetUp(self): def afterSetUp(self):
...@@ -274,8 +278,8 @@ class ERP5TypeTestCase(PortalTestCase): ...@@ -274,8 +278,8 @@ class ERP5TypeTestCase(PortalTestCase):
""" """
Shortcut function to log a message Shortcut function to log a message
""" """
ZopeTestCase._print('\n%s ' % message) ZopeTestCase._print('\n%s ' % message)
LOG('Testing ... ',0,message) LOG('Testing ... ', DEBUG, message)
# Utility methods specific to ERP5Type # Utility methods specific to ERP5Type
def getTemplateTool(self): def getTemplateTool(self):
......
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