[Erp5-report] r36311 jerome - in /erp5/trunk/utils/erp5.recipe.createsite: ./ src/erp5/reci...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jun 14 17:15:06 CEST 2010


Author: jerome
Date: Mon Jun 14 17:14:45 2010
New Revision: 36311

URL: http://svn.erp5.org?rev=36311&view=rev
Log:
Call the recipe on update. Rerunning the recipe will create the site if missing from ZODB, and update business templates.

Modified:
    erp5/trunk/utils/erp5.recipe.createsite/CHANGES.txt
    erp5/trunk/utils/erp5.recipe.createsite/setup.py
    erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/__init__.py
    erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/create_erp5_instance.py

Modified: erp5/trunk/utils/erp5.recipe.createsite/CHANGES.txt
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.createsite/CHANGES.txt?rev=36311&r1=36310&r2=36311&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.recipe.createsite/CHANGES.txt [utf8] (original)
+++ erp5/trunk/utils/erp5.recipe.createsite/CHANGES.txt [utf8] Mon Jun 14 17:14:45 2010
@@ -1,6 +1,13 @@
 Changelog
 =========
 
+1.0.2 (2010-06-14)
+------------------
+
+- Call the recipe on update. Rerunning the recipe will create the site if
+  missing from ZODB, and update business templates.
+  [Jérome]
+
 1.0.1 (2010-02-24)
 ------------------
 

Modified: erp5/trunk/utils/erp5.recipe.createsite/setup.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.createsite/setup.py?rev=36311&r1=36310&r2=36311&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.recipe.createsite/setup.py [utf8] (original)
+++ erp5/trunk/utils/erp5.recipe.createsite/setup.py [utf8] Mon Jun 14 17:14:45 2010
@@ -1,7 +1,7 @@
 from setuptools import setup, find_packages
 
 name = "erp5.recipe.createsite"
-version = '1.0.1'
+version = '1.0.2'
 
 def read(name):
     return open(name).read()

Modified: erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/__init__.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/__init__.py?rev=36311&r1=36310&r2=36311&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/__init__.py [utf8] (original)
+++ erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/__init__.py [utf8] Mon Jun 14 17:14:45 2010
@@ -77,6 +77,4 @@ class Recipe:
         
         return []
 
-    def update(self):
-        pass
-    
+    update = install

Modified: erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/create_erp5_instance.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/create_erp5_instance.py?rev=36311&r1=36310&r2=36311&view=diff
==============================================================================
--- erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/create_erp5_instance.py [utf8] (original)
+++ erp5/trunk/utils/erp5.recipe.createsite/src/erp5/recipe/createsite/create_erp5_instance.py [utf8] Mon Jun 14 17:14:45 2010
@@ -112,12 +112,12 @@ for arg in args:
     revision = file('%s/bt/revision' % bt_path).read().strip()
     if version == installed_bt.getVersion() and \
        revision == installed_bt.getRevision():
-      print 'Skipping bt %s' % bt_path
+      print 'Skipping up to date BT %s' % bt_path
       continue
     else:
-      print 'Updating bt %s' % bt_path
+      print 'Updating BT %s' % bt_path
   else:
-    print 'Installing bt %s' % bt_path
+    print 'Installing BT %s' % bt_path
   bt = portal.portal_templates.download(bt_path)
   bt.install(force=True)
   transaction.commit()




More information about the Erp5-report mailing list