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

@ -1,6 +1,10 @@
2007-09-23 Benny Malengier <benny.malengier@gramps-project.org>
* src/ArgHandler.py: from buglist, read recent file is broken in GRAMPS 30!
DISABLE, this module must be cleaned completely before 3.0 !!
2007-09-23 Zsolt Foldvari <zfoldvar@users.sourceforge.net> 2007-09-23 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/plugins/WebCal.py: * src/plugins/WebCal.py:
* src/plugins/NarrativeWeb.py: * src/plugins/NarrativeWeb.py:S
Change const.image_dir to uppercase const.IMAGE_DIR Change const.image_dir to uppercase const.IMAGE_DIR
2007-09-20 Benny Malengier <benny.malengier@gramps-project.org> 2007-09-20 Benny Malengier <benny.malengier@gramps-project.org>

View File

@ -442,16 +442,17 @@ class ArgHandler:
print "Exiting." print "Exiting."
sys.exit(0) sys.exit(0)
elif Config.get(Config.RECENT_FILE) and Config.get(Config.AUTOLOAD): ## read recent file is broken in GRAMPS 30 ! DISABLE
rf = Config.get(Config.RECENT_FILE) ##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) ## if os.path.isfile(rf):
self.vm.read_recent_file(rf, filetype) ## filetype = Mime.get_type(rf)
elif os.path.isdir(rf): ## self.vm.read_recent_file(rf, filetype)
if os.path.isfile(os.path.join(rf, "name.txt")) and \ ## elif os.path.isdir(rf):
not os.path.isfile(os.path.join(rf,"need_recover")): ## if os.path.isfile(os.path.join(rf, "name.txt")) and \
self.vm.read_recent_file(rf, 'x-directory/normal') ## not os.path.isfile(os.path.join(rf,"need_recover")):
## self.vm.read_recent_file(rf, 'x-directory/normal')
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #