pylint cleanup
This commit is contained in:
parent
5f794c0570
commit
d4cb0c3d7c
@ -56,6 +56,7 @@ _LOG = logging.getLogger(DBLOGNAME)
|
||||
#
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
|
||||
class DbReadBase:
|
||||
"""
|
||||
Gramps database object. This object is a base class for all
|
||||
@ -1409,6 +1410,7 @@ class DbReadBase:
|
||||
name = self.get_table_func(table, "class_func").get_field_alias(name)
|
||||
return name.replace(".", "__")
|
||||
|
||||
|
||||
class DbWriteBase(DbReadBase):
|
||||
"""
|
||||
Gramps database object. This object is a base class for all
|
||||
@ -1762,7 +1764,8 @@ class DbWriteBase(DbReadBase):
|
||||
self.commit_family(family, trans)
|
||||
self.commit_person(child, trans)
|
||||
|
||||
def remove_child_from_family(self, person_handle, family_handle, trans=None):
|
||||
def remove_child_from_family(self, person_handle, family_handle,
|
||||
trans=None):
|
||||
"""
|
||||
Remove a person as a child of the family, deleting the family if
|
||||
it becomes empty.
|
||||
@ -1772,7 +1775,8 @@ class DbWriteBase(DbReadBase):
|
||||
self.__remove_child_from_family(person_handle, family_handle,
|
||||
trans)
|
||||
else:
|
||||
self.__remove_child_from_family(person_handle, family_handle, trans)
|
||||
self.__remove_child_from_family(person_handle, family_handle,
|
||||
trans)
|
||||
trans.set_description(_("Remove child from family"))
|
||||
|
||||
def __remove_child_from_family(self, person_handle, family_handle, trans):
|
||||
@ -1794,7 +1798,8 @@ class DbWriteBase(DbReadBase):
|
||||
|
||||
def delete_person_from_database(self, person, trans):
|
||||
"""
|
||||
Deletes a person from the database, cleaning up all associated references.
|
||||
Deletes a person from the database, cleaning up all associated
|
||||
references.
|
||||
"""
|
||||
|
||||
# clear out the default person if the person is the default person
|
||||
|
Loading…
Reference in New Issue
Block a user