core (tools): moved common to a separate package, and put data method in a data_format module
This commit is contained in:
parent
d0fb849398
commit
2d1d286be2
1 changed files with 15 additions and 15 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue