diff --git a/gramps2/src/AddSpouse.py b/gramps2/src/AddSpouse.py index b3efe08fb..edebeef1c 100644 --- a/gramps2/src/AddSpouse.py +++ b/gramps2/src/AddSpouse.py @@ -256,7 +256,7 @@ class AddSpouse: if not self.active_family: self.active_family = RelLib.Family() - self.db.add_family(family,trans) + self.db.add_family(self.active_family,trans) self.person.add_family_handle(self.active_family.get_handle()) self.db.commit_person(self.person,trans) diff --git a/gramps2/src/Calendar.py b/gramps2/src/Calendar.py index 10ca647d2..182a3a6f8 100644 --- a/gramps2/src/Calendar.py +++ b/gramps2/src/Calendar.py @@ -542,8 +542,6 @@ def find_calendar(name): return None def calendar_names(): - list = [] - for n in _calendars.values(): - list.append(n) - list.sort() - return list + dlist = _calendars.values(): + dlist.sort() + return dlist