[Erp5-report] r34248 luke - /erp5/trunk/utils/erp5.timmy/src/erp5/timmy/timmy.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 1 15:39:24 CEST 2010


Author: luke
Date: Thu Apr  1 15:39:23 2010
New Revision: 34248

URL: http://svn.erp5.org?rev=34248&view=rev
Log:
 - move loggin inside of try block
 - remove not needed comment
 - set site id (ERP5Site implements not overwriting by itself)

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=34248&r1=34247&r2=34248&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] Thu Apr  1 15:39:23 2010
@@ -373,17 +373,20 @@
         allow_none=True)
 
   def update(self):
-    # for now assume only one BT5_REPOSITORY_LIST
     try:
       self.connection.portal_templates.updateRepositoryBusinessTemplateList(
           self.business_configuration_dict['BT5_REPOSITORY_LIST'], None)
       result = self.connection.portal_templates\
           .installBusinessTemplatesFromRepositories(
             self.business_configuration_dict['BT5_LIST'])
+      logging.info('Installed Business Templates with result: %s' % ','.join(
+        result))
+      self.connection.setERP5SiteGlobalId(self.business_configuration_dict[
+        'ID'])
     except socket.error:
-      logging.warning('Cannot connect to %s, ignoring for now' % self.connection_string)
+      logging.warning('Cannot connect to %s, ignoring for now' %
+          self.connection_string)
       return
-    logging.info('Installed Business Templates with result: %s' % ','.join(result))
 
 def keygenParseOptions():
   parser = OptionParser()




More information about the Erp5-report mailing list