[silva.core.upgrade][Sylvain Viollon] Update messages.

[email protected] Wed, 04 Dec 2013 15:31:51 +0100
Newsgroups gmane.comp.web.zope.silva.cvs
Message-ID <[email protected]>
author:    Sylvain Viollon
date:      Wed Dec 04 15:32:05 2013 +0100
revision:  358:fa39944a4853 in silva.core.upgrade
branch:    2.4
details:   https://hg.infrae.com/silva.core.upgrade?cmd=changeset;node=fa39944a4853
modified:  src/silva/core/upgrade/upgrader/upgrade_236.py
added:     
removed:   
log:       Update messages.


diffstat:

 src/silva/core/upgrade/upgrader/upgrade_236.py |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r a2f2779173f0 -r fa39944a4853 src/silva/core/upgrade/upgrader/upgrade_236.py
--- a/src/silva/core/upgrade/upgrader/upgrade_236.py	Wed Dec 04 15:24:06 2013 +0100
+++ b/src/silva/core/upgrade/upgrader/upgrade_236.py	Wed Dec 04 15:32:05 2013 +0100
@@ -40,7 +40,7 @@
             return None
         if container.get_link_status() is not None:
             logger.warning(
-                u"Invalid ghost folder invalid, not transforming %s.",
+                u"Invalid ghost folder invalid, not transforming: %s.",
                 content_path(content))
             return None
         content_id = content.getId()
@@ -63,7 +63,7 @@
                     auto_publish=True).modify(
             content_haunted, content_id).verify()
         logger.info(
-            u"Image %s converted to ghost asset.",
+            u"Image converted to ghost asset: %s.",
             content_path(content))
         return ghost
 
@@ -84,7 +84,7 @@
             logger.error(error.args[0])
         data.close()
         ICataloging(content).reindex()
-        logger.info(u"Image %s rebuilt.", content_path(content))
+        logger.info(u"Image rebuilt: %s.", content_path(content))
         return content
 
     def upgrade(self, content):
@@ -133,7 +133,7 @@
             return None
         if container.get_link_status() is not None:
             logger.warning(
-                u"Invalid ghost folder invalid, not transforming %s.",
+                u"Invalid ghost folder invalid, not transforming: %s.",
                 content_path(content))
             return None
         file_id = content.getId()
@@ -150,7 +150,7 @@
                     auto_delete=True,
                     auto_publish=True).modify(file_haunted, file_id).verify()
         logger.info(
-            u"File %s converted to ghost asset.",
+            u"File converted to ghost asset: %s.",
             content_path(content))
         return ghost
 
@@ -179,7 +179,7 @@
             content_encoding=content.get_content_encoding())
         container._delObject(identifier)
         container.manage_renameObject(tmp_identifier, identifier)
-        logger.info(u"File %s rebuilt.", content_path(new_file))
+        logger.info(u"File rebuilt: %s.", content_path(new_file))
         return new_file
 
 file_upgrader = FilesUpgrader(VERSION_FINAL, 'Silva File')