* src/ViewManager.py: exposed a private method via a new method,

post_load_newdb()
	* src/ArgHandler.py: made ArgHandler.handle_args() return filename,
	  and filetype, if commandline or recentfile
	* src/gramps_main.py: handles return values from AH.handle_args()

2007-12-10  Douglas S. Blank  <dblank@cs.brynmawr.edu>


svn: r9486
This commit is contained in:
Doug Blank
2007-12-11 02:49:58 +00:00
parent 10d24dd35f
commit 0aba9e8e2b
4 changed files with 40 additions and 18 deletions

View File

@ -575,6 +575,17 @@ class ViewManager:
if not self.state.db.is_open():
self.__open_activate(None)
def post_load_newdb(self, filename, filetype):
# Attempt to figure out the database title
path = os.path.join(filename, "name.txt")
try:
ifile = open(path)
title = ifile.readline().strip()
ifile.close()
except:
title = filename
self.__post_load_newdb(filename, filetype, title)
def __do_load_plugins(self):
"""
Loads the plugins at initialization time. We load the document