diff src/plugins/plugin_blog_import_dotclear.py @ 1919:d3354c80bd1f

core (tools): moved common to a separate package, and put data method in a data_format module
author Goffi <goffi@goffi.org>
date Tue, 22 Mar 2016 22:46:04 +0100
parents d80ccf4bf201
children 2daf7b4c6756
line wrap: on
line diff
--- a/src/plugins/plugin_blog_import_dotclear.py	Mon Mar 21 19:44:16 2016 +0100
+++ b/src/plugins/plugin_blog_import_dotclear.py	Tue Mar 22 22:46:04 2016 +0100
@@ -22,7 +22,7 @@
 from sat.core.log import getLogger
 log = getLogger(__name__)
 from sat.core import exceptions
-from sat.tools import common
+from sat.tools.common import data_format
 from twisted.internet import threads
 from collections import OrderedDict
 import itertools
@@ -159,7 +159,7 @@
 
     def metaFinishedHandler(self):
         for post_id, tags in self.tags.iteritems():
-            common.iter2dict('tag', tags, self.posts_data[post_id]['blog'])
+            data_format.iter2dict('tag', tags, self.posts_data[post_id]['blog'])
         del self.tags
 
     def commentHandler(self, headers, data, index):