* src/DisplayModels.py: Fix column handling for repositories

* src/RepositoryView.py: Columns for repositories
* src/GrampsDb/_GrampsDbBase.py: default columns settings for repositories
* src/GrampsDb/_ReadGedcom.py: Import repository information
* src/RelLib/_Event.py: check Event type values


svn: r5826
This commit is contained in:
Don Allingham
2006-01-24 21:09:34 +00:00
parent e4e6e2e7de
commit c0aeb95246
6 changed files with 198 additions and 66 deletions

View File

@@ -305,6 +305,8 @@ class Event(PrimaryObject,SourceNote,MediaBase,DateBase,PlaceBase):
the_type = (the_type,'')
else:
the_type = (Event.CUSTOM,the_type)
assert(type(the_type[0]) == int)
assert(type(the_type[1]) == unicode or type(the_type[1]) == str)
self.type = the_type
def get_type(self):