2006-10-02 Don Allingham <don@gramps-project.org>

* src/Selectors/_SelectPlace.py: use proper column for place handle
	* src/DisplayModels/_PlaceModel.py: specify place handle



svn: r7341
This commit is contained in:
Don Allingham 2006-10-03 02:47:51 +00:00
parent ff99d4d020
commit f939ce1a0d
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-10-02 Don Allingham <don@gramps-project.org>
* src/Selectors/_SelectPlace.py: use proper column for place handle
* src/DisplayModels/_PlaceModel.py: specify place handle
2006-10-01 Don Allingham <don@gramps-project.org>
* src/Utils.py: catch divide by zero case
* src/ViewManager.py: change change to same page (#410)

View File

@ -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

View File

@ -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