Added User when drag/drop filename on Family Tree manager; added comments in cli interface
svn: r20113
This commit is contained in:
parent
13a1e7e412
commit
bdaee91064
@ -287,6 +287,12 @@ class CLIDbManager(object):
|
|||||||
A new database will only be created if an appropriate importer was
|
A new database will only be created if an appropriate importer was
|
||||||
found.
|
found.
|
||||||
|
|
||||||
|
@param filename: a fully-qualified path, filename, and
|
||||||
|
extension to open.
|
||||||
|
|
||||||
|
@param user: a cli.User or gui.User instance for managing user
|
||||||
|
interaction.
|
||||||
|
|
||||||
@return: A tuple of (new_path, name) for the new database
|
@return: A tuple of (new_path, name) for the new database
|
||||||
or (None, None) if no import was performed.
|
or (None, None) if no import was performed.
|
||||||
"""
|
"""
|
||||||
|
@ -745,7 +745,7 @@ class DbManager(CLIDbManager):
|
|||||||
if drag_value and urlparse.urlparse(drag_value).scheme != "":
|
if drag_value and urlparse.urlparse(drag_value).scheme != "":
|
||||||
fname, title = [], []
|
fname, title = [], []
|
||||||
for treename in [v.strip() for v in drag_value.split("\n") if v.strip() != '']:
|
for treename in [v.strip() for v in drag_value.split("\n") if v.strip() != '']:
|
||||||
f, t = self.import_new_db(treename, None)
|
f, t = self.import_new_db(treename, User())
|
||||||
fname.append(f)
|
fname.append(f)
|
||||||
title.append(t)
|
title.append(t)
|
||||||
return fname, title
|
return fname, title
|
||||||
|
Loading…
Reference in New Issue
Block a user