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

This commit is contained in:
Jérôme Rapinat 2014-01-06 17:33:58 +01:00
parent 2e3724f2f3
commit 7544d66cb1
8 changed files with 13 additions and 5 deletions

View File

@ -65,7 +65,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, 5),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -64,7 +64,8 @@ class SelectEvent(BaseSelector):
(_('Type'), 75, BaseSelector.TEXT, 2), (_('Type'), 75, BaseSelector.TEXT, 2),
(_('Main Participants'), 250, BaseSelector.TEXT, 7), (_('Main Participants'), 250, BaseSelector.TEXT, 7),
(_('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, 6),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -62,6 +62,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, 7),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -67,7 +67,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, 4) (_('Tags'), 100, BaseSelector.TEXT, 4),
(_('Last Change'), 150, BaseSelector.TEXT, 5),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -72,6 +72,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, 7),
] ]
def _local_init(self): def _local_init(self):

View File

@ -69,6 +69,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, 13),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -60,7 +60,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, 13),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -60,7 +60,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, 6),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):