* src/DisplayModels.py: Fix sorting

* src/FamilyList.py: Fix sorting
* src/PageView.py: Fix sorting
* src/GrampsDb/_GrampsDbBase.py: set default column sorting order


svn: r5697
This commit is contained in:
Don Allingham
2006-01-09 00:54:04 +00:00
parent 2f1a21fb6e
commit f9e333f696
5 changed files with 27 additions and 28 deletions

View File

@@ -1536,7 +1536,7 @@ class GrampsDbBase(GrampsDBCallback):
Returns the Person display common information stored in the
database's metadata.
"""
default = [(1,1),(1,2),(1,3),(1,4),(0,5)]
default = [(1,0), (1,1),(1,2),(1,3),(0,4)]
return self._get_column_order(FAMILY_COL_KEY,default)
def get_child_column_order(self):
@@ -1552,7 +1552,7 @@ class GrampsDbBase(GrampsDBCallback):
Returns the Place display common information stored in the
database's metadata.
"""
default = [(1,1),(1,2),(0,3),(0,4),(1,5),(0,6),(1,7),(0,8),(0,9),(0,10)]
default = [(1,0), (1,1),(1,2),(0,3),(0,4),(1,5),(0,6),(1,7),(0,8),(0,9),(0,10)]
return self._get_column_order(PLACE_COL_KEY,default)
def get_source_column_order(self):
@@ -1560,7 +1560,7 @@ class GrampsDbBase(GrampsDBCallback):
Returns the Source display common information stored in the
database's metadata.
"""
default = [(1,1),(1,2),(0,3),(1,4),(0,5)]
default = [(1,0),(1,1),(1,2),(0,3),(1,4),(0,5)]
return self._get_column_order(SOURCE_COL_KEY,default)
def get_media_column_order(self):
@@ -1568,7 +1568,7 @@ class GrampsDbBase(GrampsDBCallback):
Returns the MediaObject display common information stored in the
database's metadata.
"""
default = [(1,1),(1,2),(1,3),(1,5),(0,4)]
default = [(1,0),(1,1),(1,2),(1,3),(1,5),(0,4)]
return self._get_column_order(MEDIA_COL_KEY,default)
def get_event_column_order(self):
@@ -1576,7 +1576,7 @@ class GrampsDbBase(GrampsDBCallback):
Returns the Event display common information stored in the
database's metadata.
"""
default = [(1,1),(1,2),(1,3),(1,4),(1,5),(0,6)]
default = [(1,0),(1,1),(1,2),(1,3),(1,4),(1,5),(0,6)]
return self._get_column_order(EVENT_COL_KEY,default)
def get_repository_column_order(self):
@@ -1584,7 +1584,7 @@ class GrampsDbBase(GrampsDBCallback):
Returns the Repository display common information stored in the
database's metadata.
"""
default = [(1,1),(0,5),(0,6),(1,2),(1,3),(0,4),(0,7),(0,8),(0,9),(0,10)]
default = [(1,0),(1,1),(0,5),(0,6),(1,2),(1,3),(0,4),(0,7),(0,8),(0,9),(0,10)]
return self._get_column_order(REPOSITORY_COL_KEY,default)
def _update_reference_map(self,obj):