From 2d7089ec60cd8bce95826adc5e750bfa6e27f12b Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sat, 18 Jun 2016 12:07:08 +0200 Subject: [PATCH] 9527: Configuration of 'Enclosing' and 'Enclosed by' Date gramplets to show Place IDs --- gramps/plugins/gramplet/locations.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/gramplet/locations.py b/gramps/plugins/gramplet/locations.py index 9cee233f4..18642e417 100644 --- a/gramps/plugins/gramplet/locations.py +++ b/gramps/plugins/gramplet/locations.py @@ -83,7 +83,8 @@ class Locations(Gramplet, DbGUIElement): titles = [('', 0, 50), (_('Name'), 1, 300), (_('Type'), 2, 150), - (_('Date'), 4, 150), + (_('Date'), 3, 150), + (_('ID'), 4, 100), ('', NOSORT, 50)] self.model = ListModel(top, titles, list_mode="tree", event_func=self.edit_place) @@ -133,11 +134,13 @@ class Locations(Gramplet, DbGUIElement): place_sort = '%012d' % placeref.get_date_object().get_sort_value() place_name = place.get_name().get_value() place_type = str(place.get_type()) + place_id = place.get_gramps_id() new_node = self.model.add([place.handle, place_name, place_type, place_date, + place_id, place_sort], node=node)