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:
parent
2225ac3d78
commit
2bcdc69ce5
@ -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>
|
2008-01-15 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||||
* src/GrampsDbUtils/_GrampsDbWriteXML.py
|
* src/GrampsDbUtils/_GrampsDbWriteXML.py
|
||||||
* src/GrampsDbUtils/_WriteGedcom.py
|
* src/GrampsDbUtils/_WriteGedcom.py
|
||||||
|
@ -451,16 +451,11 @@ class ArgHandler:
|
|||||||
|
|
||||||
elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD):
|
elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD):
|
||||||
filename = Config.get(Config.RECENT_FILE)
|
filename = Config.get(Config.RECENT_FILE)
|
||||||
self.vm.db_loader.read_file(filename)
|
if os.path.isdir(filename) and \
|
||||||
return (filename, const.APP_FAMTREE)
|
os.path.isfile(os.path.join(filename, "name.txt")) and \
|
||||||
|
not os.path.isfile(os.path.join(filename, "need_recover")):
|
||||||
#if os.path.isfile(rf):
|
self.vm.db_loader.read_file(filename)
|
||||||
# filetype = Mime.get_type(rf)
|
return (filename, const.APP_FAMTREE)
|
||||||
# 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')
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user