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