* src/GrampsDbBase.py: remove thumbnailing routines, add

id creation. Removes gtk and Utils dependencies, making the
database routines independent of gtk and gnome.
* src/ImgManip.py: add thumbnailing routines.
* various: thumbnailing changes and pychecker fixes


svn: r3888
This commit is contained in:
Don Allingham
2005-01-09 02:18:49 +00:00
parent 65b6bb34af
commit 8ad3ba7456
23 changed files with 86 additions and 149 deletions

View File

@@ -37,7 +37,6 @@ from gtk.gdk import ACTION_COPY, BUTTON1_MASK
import const
import Utils
import GrampsKeys
import GrampsCfg
import AddSpouse
import SelectChild
import DisplayTrace
@@ -842,9 +841,9 @@ class FamilyView:
mother_id = self.family.get_mother_handle()
father_id = self.family.get_father_handle()
for id in [father_id, mother_id]:
if id:
p = self.db.find_person_from_handle(id)
for handle in [father_id, mother_id]:
if handle:
p = self.parent.db.find_person_from_handle(handle)
p.remove_family_handle(self.family.get_handle())
self.parent.db.commit_person(p,trans)
@@ -1059,7 +1058,7 @@ class FamilyView:
self.family = self.parent.db.get_family_from_handle(flist[0])
else:
self.family = None
n = NameDisplay.display.displayer(person)
n = NameDisplay.displayer.display(person)
self.parent.db.transaction_commit(trans,_("Remove from family (%s)") % n)
def display_marriage(self,family):