2008-01-15 Benny Malengier <benny.malengier@gramps-project.org>

* src/ArgHandler.py: on autoload, do some extra checks first.



svn: r9813
This commit is contained in:
Benny Malengier 2008-01-15 09:21:13 +00:00
parent 2225ac3d78
commit 2bcdc69ce5
2 changed files with 8 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2008-01-15 Benny Malengier <benny.malengier@gramps-project.org>
* src/ArgHandler.py: on autoload, do some extra checks first.
2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>
* src/GrampsDbUtils/_GrampsDbWriteXML.py
* src/GrampsDbUtils/_WriteGedcom.py

View File

@ -451,16 +451,11 @@ class ArgHandler:
elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD):
filename = Config.get(Config.RECENT_FILE)
self.vm.db_loader.read_file(filename)
return (filename, const.APP_FAMTREE)
#if os.path.isfile(rf):
# filetype = Mime.get_type(rf)
# self.vm.read_recent_file(rf, filetype)
#elif os.path.isdir(rf):
# if os.path.isfile(os.path.join(rf, "name.txt")) and \
# not os.path.isfile(os.path.join(rf,"need_recover")):
# self.vm.read_recent_file(rf, 'x-directory/normal')
if os.path.isdir(filename) and \
os.path.isfile(os.path.join(filename, "name.txt")) and \
not os.path.isfile(os.path.join(filename, "need_recover")):
self.vm.db_loader.read_file(filename)
return (filename, const.APP_FAMTREE)
#-------------------------------------------------------------------------
#