* 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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user