diff frontends/src/jp/cmd_blog.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 c38bcc0343b6
children b111f6589da4
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py	Mon Mar 21 19:44:16 2016 +0100
+++ b/frontends/src/jp/cmd_blog.py	Tue Mar 22 22:46:04 2016 +0100
@@ -32,7 +32,7 @@
 import subprocess
 import shlex
 import glob
-from sat.tools import common
+from sat.tools.common import data_format
 
 __commands__ = ["Blog"]
 
@@ -187,7 +187,7 @@
         # and override metadata with command-line arguments
         mb_data['allow_comments'] = C.boolConst(not self.args.no_comment)
         if self.args.tag:
-            common.iter2dict('tag', self.args.tag, mb_data)
+            data_format.iter2dict('tag', self.args.tag, mb_data)
         if self.args.title is not None:
             mb_data['title'] = self.args.title