3752: Fix sort order of last-changed column
svn: r14933
This commit is contained in:
parent
e71d2d21c3
commit
80a1b440b8
@ -131,7 +131,7 @@ class PeopleBaseModel(object):
|
|||||||
self.sort_death_day,
|
self.sort_death_day,
|
||||||
self.column_death_place,
|
self.column_death_place,
|
||||||
self.column_spouse,
|
self.column_spouse,
|
||||||
self.column_change,
|
self.sort_change,
|
||||||
self.column_int_id,
|
self.column_int_id,
|
||||||
self.column_marker_text,
|
self.column_marker_text,
|
||||||
self.column_marker_color,
|
self.column_marker_color,
|
||||||
@ -219,6 +219,9 @@ class PeopleBaseModel(object):
|
|||||||
def column_id(self, data):
|
def column_id(self, data):
|
||||||
return data[COLUMN_ID]
|
return data[COLUMN_ID]
|
||||||
|
|
||||||
|
def sort_change(self,data):
|
||||||
|
return "%012x" % data[COLUMN_CHANGE]
|
||||||
|
|
||||||
def column_change(self, data):
|
def column_change(self, data):
|
||||||
return unicode(
|
return unicode(
|
||||||
time.strftime('%x %X',
|
time.strftime('%x %X',
|
||||||
|
@ -87,7 +87,7 @@ class RepositoryModel(FlatBaseModel):
|
|||||||
self.column_country,
|
self.column_country,
|
||||||
self.column_email,
|
self.column_email,
|
||||||
self.column_search_url,
|
self.column_search_url,
|
||||||
self.column_change,
|
self.sort_change,
|
||||||
self.column_handle,
|
self.column_handle,
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -216,6 +216,9 @@ class RepositoryModel(FlatBaseModel):
|
|||||||
def column_tooltip(self,data):
|
def column_tooltip(self,data):
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
def sort_change(self,data):
|
||||||
|
return "%012x" % data[7]
|
||||||
|
|
||||||
def column_change(self,data):
|
def column_change(self,data):
|
||||||
return unicode(time.strftime('%x %X',time.localtime(data[7])),
|
return unicode(time.strftime('%x %X',time.localtime(data[7])),
|
||||||
GrampsLocale.codeset)
|
GrampsLocale.codeset)
|
||||||
|
Loading…
Reference in New Issue
Block a user