read recent file is broken in GRAMPS 30 ! DISABLE

svn: r9000
This commit is contained in:
Benny Malengier
2007-09-23 18:26:09 +00:00
parent e05e2c094a
commit bb5c01c602
2 changed files with 16 additions and 11 deletions

View File

@@ -442,16 +442,17 @@ class ArgHandler:
print "Exiting."
sys.exit(0)
elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD):
rf = Config.get(Config.RECENT_FILE)
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')
## read recent file is broken in GRAMPS 30 ! DISABLE
##elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD):
## rf = Config.get(Config.RECENT_FILE)
##
## 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')
#-------------------------------------------------------------------------
#