5024: add 'Last Change' column on selectors, when missing

This commit is contained in:
Jérôme Rapinat 2014-01-06 17:09:45 +01:00
parent d538fe6ebc
commit 57e408ada5
8 changed files with 13 additions and 5 deletions

View File

@ -64,7 +64,8 @@ class SelectCitation(BaseSelector):
def get_column_titles(self): def get_column_titles(self):
return [ return [
(_('Source: Title or Citation: Volume/Page'), 350, BaseSelector.TEXT, 0), (_('Source: Title or Citation: Volume/Page'), 350, BaseSelector.TEXT, 0),
(_('ID'), 75, BaseSelector.TEXT, 1) (_('ID'), 75, BaseSelector.TEXT, 1),
(_('Last Change'), 150, BaseSelector.TEXT, 4),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -63,7 +63,8 @@ class SelectEvent(BaseSelector):
(_('Type'), 75, BaseSelector.TEXT, 2), (_('Type'), 75, BaseSelector.TEXT, 2),
(_('Main Participants'), 250, BaseSelector.TEXT, 6), (_('Main Participants'), 250, BaseSelector.TEXT, 6),
(_('Date'), 150, BaseSelector.TEXT, 3), (_('Date'), 150, BaseSelector.TEXT, 3),
(_('Place'), 150, BaseSelector.TEXT, 4) (_('Place'), 150, BaseSelector.TEXT, 4),
(_('Last Change'), 150, BaseSelector.TEXT, 5),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -61,6 +61,7 @@ class SelectFamily(BaseSelector):
(_('ID'), 75, BaseSelector.TEXT, 0), (_('ID'), 75, BaseSelector.TEXT, 0),
(_('Father'), 200, BaseSelector.TEXT, 1), (_('Father'), 200, BaseSelector.TEXT, 1),
(_('Mother'), 200, BaseSelector.TEXT, 2), (_('Mother'), 200, BaseSelector.TEXT, 2),
(_('Last Change'), 150, BaseSelector.TEXT, 6),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -66,7 +66,8 @@ class SelectNote(BaseSelector):
(_('Preview'), 350, BaseSelector.TEXT, 0), (_('Preview'), 350, BaseSelector.TEXT, 0),
(_('ID'), 75, BaseSelector.TEXT, 1), (_('ID'), 75, BaseSelector.TEXT, 1),
(_('Type'), 100, BaseSelector.TEXT, 2), (_('Type'), 100, BaseSelector.TEXT, 2),
(_('Tags'), 100, BaseSelector.TEXT, 3) (_('Tags'), 100, BaseSelector.TEXT, 3),
(_('Last Change'), 150, BaseSelector.TEXT, 4),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -74,6 +74,7 @@ class SelectObject(BaseSelector):
(_('Title'), 350, BaseSelector.TEXT, 0), (_('Title'), 350, BaseSelector.TEXT, 0),
(_('ID'), 75, BaseSelector.TEXT, 1), (_('ID'), 75, BaseSelector.TEXT, 1),
(_('Type'), 75, BaseSelector.TEXT, 2), (_('Type'), 75, BaseSelector.TEXT, 2),
(_('Last Change'), 150, BaseSelector.TEXT, 6),
] ]
def _local_init(self): def _local_init(self):

View File

@ -68,6 +68,7 @@ class SelectPlace(BaseSelector):
(_('State'), 75, BaseSelector.TEXT, 6), (_('State'), 75, BaseSelector.TEXT, 6),
(_('Country'), 75, BaseSelector.TEXT, 7), (_('Country'), 75, BaseSelector.TEXT, 7),
(_('Parish'), 75, BaseSelector.TEXT, 9), (_('Parish'), 75, BaseSelector.TEXT, 9),
(_('Last Change'), 150, BaseSelector.TEXT, 12),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -59,7 +59,8 @@ class SelectRepository(BaseSelector):
def get_column_titles(self): def get_column_titles(self):
return [ return [
(_('Title'), 350, BaseSelector.TEXT, 0), (_('Title'), 350, BaseSelector.TEXT, 0),
(_('ID'), 75, BaseSelector.TEXT, 1) (_('ID'), 75, BaseSelector.TEXT, 1),
(_('Last Change'), 150, BaseSelector.TEXT, 12),
] ]
def get_handle_column(self): def get_handle_column(self):

View File

@ -59,7 +59,8 @@ class SelectSource(BaseSelector):
def get_column_titles(self): def get_column_titles(self):
return [ return [
(_('Title'), 350, BaseSelector.TEXT, 0), (_('Title'), 350, BaseSelector.TEXT, 0),
(_('ID'), 75, BaseSelector.TEXT, 1) (_('ID'), 75, BaseSelector.TEXT, 1),
(_('Last Change'), 150, BaseSelector.TEXT, 5),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):