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

This commit is contained in:
Jérôme Rapinat 2014-01-06 16:52:19 +01:00
parent aa7e043f2d
commit a0210fc1f8
8 changed files with 12 additions and 4 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, 6),
] ]
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, 8), (_('Main Participants'), 250, BaseSelector.TEXT, 8),
(_('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, 7),
] ]
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

@ -64,6 +64,7 @@ class SelectPlace(BaseSelector):
(_('ID'), 75, BaseSelector.TEXT, 1), (_('ID'), 75, BaseSelector.TEXT, 1),
(_('Type'), 100, BaseSelector.TEXT, 3), (_('Type'), 100, BaseSelector.TEXT, 3),
(_('Title'), 300, BaseSelector.TEXT, 2), (_('Title'), 300, BaseSelector.TEXT, 2),
(_('Last Change'), 150, BaseSelector.TEXT, 9),
] ]
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, 14),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):

View File

@ -61,6 +61,7 @@ class SelectSource(BaseSelector):
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, 7),
] ]
def get_from_handle_func(self): def get_from_handle_func(self):