[Erp5-report] r34805 luke - /erp5/trunk/utils/erp5.timmy/src/erp5/timmy/timmy.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 27 11:14:56 CEST 2010
Author: luke
Date: Tue Apr 27 11:14:54 2010
New Revision: 34805
URL: http://svn.erp5.org?rev=34805&view=rev
Log:
- be more informative in logs
Modified:
erp5/trunk/utils/erp5.timmy/src/erp5/timmy/timmy.py
Modified: erp5/trunk/utils/erp5.timmy/src/erp5/timmy/timmy.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.timmy/src/erp5/timmy/timmy.py?rev=34805&r1=34804&r2=34805&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.timmy/src/erp5/timmy/timmy.py [utf8] (original)
+++ erp5/trunk/utils/erp5.timmy/src/erp5/timmy/timmy.py [utf8] Tue Apr 27 11:14:54 2010
@@ -277,11 +277,13 @@
pass
else:
# configured, do not touch
+ logging.info('%s already configured.' % self.partition_dict['ID'])
return 'reportStarted', 'Already configured'
if self.connection.portal_activities.countMessageWithTag(
'initialERP5Setup') > 0:
# do not work on instance, on witch initial setup is done
# this is one big transaction and timmy makes it restart
+ logging.info('%s configuration in progress.' % self.partition_dict['ID'])
return 'reportStarting', 'Configuration in progress'
# set id
self.connection.setERP5SiteGlobalId(self.partition_dict[
@@ -292,8 +294,8 @@
result = self.connection.portal_templates\
.installBusinessTemplatesFromRepositories(
self.partition_dict['BT5_LIST'])
- logging.info('Installed Business Templates with result: %s' % ','.join(
- result))
+ logging.info('%s: Installed Business Templates with result: %s' % (
+ self.partition_dict['ID'], ','.join(result)))
# XXX-Luke: In case if BT is installed, it might be required to restart
# add special user
@@ -305,6 +307,8 @@
None)
except xmlrpclib.Fault, e:
if 'Duplicate user ID' not in e.faultString:
+ logging.error('%s: xmlrpclib.Fault: %s' % (self.partition_dict['ID'],
+ e.faultString))
return 'reportError', 'xmlrpclib.Fault: %s' % e.faultString
# missing possiblity to do:
# self.connection.zodb_roles.doAssignRoleToPrincipal(
@@ -339,6 +343,7 @@
'CONFIGURATOR_LOGIN'], ('Owner',), None)
if customer_preference.getPreferenceState() == 'disabled':
customer_preference.enable()
+ logging.info('%s: prepared for configuration' % self.partition_dict['ID'])
return 'reportInstalled', 'Ready for configuration'
except socket.error:
logging.warning('Cannot connect to %s, ignoring for now' %
More information about the Erp5-report
mailing list