2007-10-08 Don Allingham <don@gramps-project.org>

* various: gen.lib integration. probably touches almost every file

	* various: gen.utils integration


svn: r9101
This commit is contained in:
Don Allingham
2007-10-08 16:41:39 +00:00
parent 8038bc0dca
commit d58641415d
245 changed files with 2315 additions and 2355 deletions

View File

@@ -29,7 +29,7 @@ class FastFilterModel(gtk.GenericTreeModel):
@ivar _table: main table to be displayed
@ivar _cursor: cursor for accessing the table.
@ivar _obj_class: the class of the object that is being pulled from
the database. This should probably be one of the primary RelLib
the database. This should probably be one of the primary gen.lib
classes.
@ivar _num_children_cache: dictionary to hold the number of
children for each primary record so that we don't have to look

View File

@@ -29,7 +29,7 @@ class FastModel(gtk.GenericTreeModel):
@ivar _table: main table to be displayed
@ivar _cursor: cursor for accessing the table.
@ivar _obj_class: the class of the object that is being pulled from
the database. This should probably be one of the primary RelLib
the database. This should probably be one of the primary gen.lib
classes.
@ivar _num_children_cache: dictionary to hold the number of
children for each primary record so that we don't have to look

View File

@@ -10,7 +10,7 @@ from _PathCursor import PathCursor
from _ListCursor import ListCursor
from _FastFilterModel import FastFilterModel
import RelLib
import gen.lib
class PersonFilterModel(FastFilterModel):
@@ -22,7 +22,7 @@ class PersonFilterModel(FastFilterModel):
def _get_object_class(self,db):
return RelLib.Person
return gen.lib.Person
def _get_fetch_func(self,db):

View File

@@ -10,7 +10,7 @@ from _PathCursor import PathCursor
from _ListCursor import ListCursor
from _FastModel import FastModel
import RelLib
import gen.lib
class PersonListModel(FastModel):
@@ -27,7 +27,7 @@ class PersonListModel(FastModel):
return ListCursor(db.surnames.cursor())
def _get_object_class(self,db):
return RelLib.Person
return gen.lib.Person
def _get_length(self,db):
return self._table.stat()['ndata']

View File

@@ -10,7 +10,7 @@ from _PathCursor import PathCursor
from _ListCursor import ListCursor
from _FastModel import FastModel
import RelLib
import gen.lib
class PersonTreeModel(FastModel):
@@ -27,7 +27,7 @@ class PersonTreeModel(FastModel):
return PathCursor(db.surnames.cursor())
def _get_object_class(self,db):
return RelLib.Person
return gen.lib.Person
def _get_length(self,db):
return self._table.stat()['nkeys']