* src/Utils.py: produce less line noise when generating
handles * src/WriteGedcom.py: save CHAN records * src/WriteXML.py: save handles and time stamps * src/GrampsDbBase.py: make the find_xxx_from_handle functions consistent and correct (handle ids correctly) * src/DisplayModels.py: add last change column * src/PeopleModel.py: add last change column * src/PeopleView.py: add last change column * src/MediaView.py: add last change column * src/SourceView.py: add last change column * src/EditPerson.py: display last change timestamps * src/EditPlace.py: display last change timestamps * src/Marriage.py: display last change timestamps * src/ReadXML.py: set last change time * src/gramps.glade: updates for last change display svn: r3498
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gettext import gettext as _
|
||||
import time
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -50,7 +51,7 @@ import accent
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
COLUMN_NAME = 0
|
||||
COLUMN_VIEW = 6
|
||||
COLUMN_VIEW = 9
|
||||
COLUMN_BOLD = COLUMN_VIEW + 1
|
||||
COLUMN_INT_ID = COLUMN_BOLD + 1
|
||||
|
||||
@@ -61,6 +62,7 @@ _NAME_COL = 3
|
||||
_DEATH_COL = 6
|
||||
_BIRTH_COL = 7
|
||||
_FAMILY_COL= 9
|
||||
_CHANGE_COL= 21
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -85,6 +87,7 @@ class PeopleModel(gtk.GenericTreeModel):
|
||||
self.column_death_day,
|
||||
self.column_death_place,
|
||||
self.column_spouse,
|
||||
self.column_change,
|
||||
self.sort_name,
|
||||
]
|
||||
|
||||
@@ -290,6 +293,9 @@ class PeopleModel(gtk.GenericTreeModel):
|
||||
def column_id(self,data):
|
||||
return data[_ID_COL]
|
||||
|
||||
def column_change(self,data):
|
||||
return time.asctime(time.localtime(data[_CHANGE_COL]))
|
||||
|
||||
def column_gender(self,data):
|
||||
return _GENDER[data[_GENDER_COL]]
|
||||
|
||||
|
Reference in New Issue
Block a user