Added User when drag/drop filename on Family Tree manager; added comments in cli interface

svn: r20113
This commit is contained in:
Doug Blank 2012-07-27 15:31:24 +00:00
parent 13a1e7e412
commit bdaee91064
2 changed files with 7 additions and 1 deletions

View File

@ -287,6 +287,12 @@ class CLIDbManager(object):
A new database will only be created if an appropriate importer was
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
or (None, None) if no import was performed.
"""

View File

@ -745,7 +745,7 @@ class DbManager(CLIDbManager):
if drag_value and urlparse.urlparse(drag_value).scheme != "":
fname, title = [], []
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)
title.append(t)
return fname, title