2008-02-18 Raphael Ackermann <raphael.ackermann@gmail.com>

* src/DataViews/EventView.py
	* src/DataViews/FamilyList.py
	* src/DataViews/PedigreeView.py
	* src/DataViews/PersonView.py
	* src/GrampsCfg.py
	* src/Editors/_EditPrimary.py
	* src/DisplayTabs/_EmbeddedList.py
	* src/DisplayTabs/_BackRefList.py
	* src/plugins/RelCalc.py
	* src/QuickReports.py
	* src/Relationship.py
	* src/Selectors/_BaseSelector.py
	* src/GrampsWidgets.py
	* src/DbManager.py
	* src/DisplayState.py
	* src/DisplayModels/_BaseModel.py
	* src/DisplayModels/_PeopleModel.py
	* src/GrampsDbUtils/_GrampsDbWriteXML.py
	* src/gramps_main.py
	* src/Filters/Rules/_MatchesFilterBase.py
	* src/ManagedWindow.py
	pep8 updates. replace ''' with """ for comments
	* src/GrampsDbUtils/_WriteGedcom.py: doc fixes
	added support for exportin source, notes and repos that are not linked to 
	other records.
	0001707: export to gedcom doesn't include source, if source is the only 
	thing in the db 

svn: r10051
This commit is contained in:
Raphael Ackermann
2008-02-18 15:52:40 +00:00
parent 41c85443a3
commit 9aee82d6d0
22 changed files with 329 additions and 310 deletions

View File

@@ -112,13 +112,13 @@ class CLIDbManager:
self._populate_cli()
def empty(self, val):
'''Callback that does nothing
'''
"""Callback that does nothing
"""
pass
def _populate_cli(self):
''' Get the list of current names in the database dir
'''
""" Get the list of current names in the database dir
"""
# make the default directory if it does not exist
dbdir = os.path.expanduser(Config.get(Config.DATABASE_PATH))
make_dbdir(dbdir)
@@ -145,18 +145,18 @@ class CLIDbManager:
self.current_names.sort()
def family_tree(self, name):
'''Given a name, return None if name not existing or
"""Given a name, return None if name not existing or
filename, filetype, name
if a known database name
'''
"""
for data in self.current_names:
if data[0] == name:
return data[1], 'x-directory/normal', name
return None
def family_tree_list(self):
'''Return a list of name, dirname of the known family trees
'''
"""Return a list of name, dirname of the known family trees
"""
lst = [(x[0], x[1]) for x in self.current_names]
return lst