core (tools): moved common to a separate package, and put data method in a data_format module

This commit is contained in:
Goffi 2016-03-22 22:46:04 +01:00
commit 2d1d286be2

View file

@ -32,7 +32,7 @@ import tempfile
import subprocess
import shlex
import glob
from sat.tools import common
from sat.tools.common import data_format
__commands__ = ["Blog"]
@ -187,7 +187,7 @@ class Edit(base.CommandBase, BlogCommon):
# 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