Code guidelines: absolute import outside of submodule
svn: r20482
This commit is contained in:
parent
149298c52b
commit
c7c8d4b0f0
@ -77,7 +77,7 @@ class ChangedSinceBase(Rule):
|
||||
time_tup = time.strptime(iso_date_time, "%Y-%m-%d %H:%M:%S")
|
||||
time_sec = time.mktime(time_tup)
|
||||
except ValueError:
|
||||
from gui.dialog import WarningDialog
|
||||
from gramps.gui.dialog import WarningDialog
|
||||
WarningDialog(_("Wrong format of date-time"),
|
||||
_("Only date-times in the iso format of yyyy-mm-dd "
|
||||
"hh:mm:ss, where the time part is optional, are "
|
||||
|
@ -25,7 +25,7 @@ This package implements an object difference engine.
|
||||
"""
|
||||
import os
|
||||
|
||||
import gramps.cli.user
|
||||
from gramps.cli.user import User
|
||||
from ..dbstate import DbState
|
||||
from gramps.cli.grampscli import CLIManager
|
||||
from ..plug import BasePluginManager
|
||||
@ -35,7 +35,7 @@ def import_as_dict(filename):
|
||||
"""
|
||||
Import the filename into a DictionaryDb and return it.
|
||||
"""
|
||||
user = cli.user.User()
|
||||
user = User()
|
||||
db = DictionaryDb()
|
||||
dbstate = DbState()
|
||||
climanager = CLIManager(dbstate, False) # do not load db_loader
|
||||
|
Loading…
Reference in New Issue
Block a user