From f939ce1a0df7c8d230fb2ed31abd48fc3f85352d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 3 Oct 2006 02:47:51 +0000 Subject: [PATCH] 2006-10-02 Don Allingham * src/Selectors/_SelectPlace.py: use proper column for place handle * src/DisplayModels/_PlaceModel.py: specify place handle svn: r7341 --- gramps2/ChangeLog | 4 ++++ gramps2/src/DisplayModels/_PlaceModel.py | 2 ++ gramps2/src/Selectors/_SelectPlace.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 7f7f1e320..e96ce7f63 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-10-02 Don Allingham + * src/Selectors/_SelectPlace.py: use proper column for place handle + * src/DisplayModels/_PlaceModel.py: specify place handle + 2006-10-01 Don Allingham * src/Utils.py: catch divide by zero case * src/ViewManager.py: change change to same page (#410) diff --git a/gramps2/src/DisplayModels/_PlaceModel.py b/gramps2/src/DisplayModels/_PlaceModel.py index c6e7d5cf2..82e2ee6e1 100644 --- a/gramps2/src/DisplayModels/_PlaceModel.py +++ b/gramps2/src/DisplayModels/_PlaceModel.py @@ -57,6 +57,8 @@ from _BaseModel import BaseModel #------------------------------------------------------------------------- class PlaceModel(BaseModel): + HANDLE_COL = 12 + def __init__(self,db,scol=0,order=gtk.SORT_ASCENDING,search=None, skip=set(), sort_map=None): self.gen_cursor = db.get_place_cursor diff --git a/gramps2/src/Selectors/_SelectPlace.py b/gramps2/src/Selectors/_SelectPlace.py index 07e47a992..c6c8fc0f5 100644 --- a/gramps2/src/Selectors/_SelectPlace.py +++ b/gramps2/src/Selectors/_SelectPlace.py @@ -58,4 +58,4 @@ class SelectPlace(BaseSelector): return self.db.get_place_from_handle def get_handle_column(self): - return 11 + return PlaceModel.HANDLE_COL