* src/GrampsDbBase.py: Fix assert statements.

svn: r3533
This commit is contained in:
Alex Roitman 2004-09-10 22:40:00 +00:00
parent 451d5b1773
commit a8b3854d96
2 changed files with 17 additions and 14 deletions

View File

@ -1,3 +1,6 @@
2004-09-10 Alex Roitman <shura@alex.neuro.umn.edu>
* src/GrampsDbBase.py: Fix assert statements.
2004-09-09 Alex Roitman <shura@alex.neuro.umn.edu> 2004-09-09 Alex Roitman <shura@alex.neuro.umn.edu>
* src/gramps.glade: Typo. * src/gramps.glade: Typo.

View File

@ -112,14 +112,14 @@ class GrampsDbBase:
Opens the specified database. The method needs to be overridden Opens the specified database. The method needs to be overridden
in the derived class. in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def close(self): def close(self):
""" """
Closes the specified database. The method needs to be overridden Closes the specified database. The method needs to be overridden
in the derived class. in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def is_open(self): def is_open(self):
""" """
@ -440,7 +440,7 @@ class GrampsDbBase:
Needs to be overridden by the derrived class. Needs to be overridden by the derrived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def get_family_from_gramps_id(self,val): def get_family_from_gramps_id(self,val):
""" """
@ -449,7 +449,7 @@ class GrampsDbBase:
Needs to be overridden by the derrived class. Needs to be overridden by the derrived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def get_place_from_gramps_id(self,val): def get_place_from_gramps_id(self,val):
"""finds a Place in the database from the passed gramps' ID. """finds a Place in the database from the passed gramps' ID.
@ -457,7 +457,7 @@ class GrampsDbBase:
Needs to be overridden by the derrived class. Needs to be overridden by the derrived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def get_source_from_gramps_id(self,val): def get_source_from_gramps_id(self,val):
"""finds a Source in the database from the passed gramps' ID. """finds a Source in the database from the passed gramps' ID.
@ -465,7 +465,7 @@ class GrampsDbBase:
Needs to be overridden by the derrived class. Needs to be overridden by the derrived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def get_object_from_gramps_id(self,val): def get_object_from_gramps_id(self,val):
"""finds a MediaObject in the database from the passed gramps' ID. """finds a MediaObject in the database from the passed gramps' ID.
@ -473,7 +473,7 @@ class GrampsDbBase:
Needs to be overridden by the derrived class. Needs to be overridden by the derrived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def add_person(self,person,transaction): def add_person(self,person,transaction):
""" """
@ -832,14 +832,14 @@ class GrampsDbBase:
Returns the list of surnames contained within the database. Returns the list of surnames contained within the database.
The function must be overridden in the derived class. The function must be overridden in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def get_person_event_type_list(self): def get_person_event_type_list(self):
""" """
Returns the list of personal event types contained within the Returns the list of personal event types contained within the
database. The function must be overridden in the derived class. database. The function must be overridden in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def get_bookmarks(self): def get_bookmarks(self):
"""returns the list of Person handles in the bookmarks""" """returns the list of Person handles in the bookmarks"""
@ -914,7 +914,7 @@ class GrampsDbBase:
database, preserving the change in the passed transaction. This database, preserving the change in the passed transaction. This
method must be overridden in the derived class. method must be overridden in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def remove_source(self,handle,transaction): def remove_source(self,handle,transaction):
""" """
@ -922,7 +922,7 @@ class GrampsDbBase:
database, preserving the change in the passed transaction. This database, preserving the change in the passed transaction. This
method must be overridden in the derived class. method must be overridden in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def remove_event(self,handle,transaction): def remove_event(self,handle,transaction):
""" """
@ -930,7 +930,7 @@ class GrampsDbBase:
database, preserving the change in the passed transaction. This database, preserving the change in the passed transaction. This
method must be overridden in the derived class. method must be overridden in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def remove_object(self,handle,transaction): def remove_object(self,handle,transaction):
""" """
@ -938,7 +938,7 @@ class GrampsDbBase:
database, preserving the change in the passed transaction. This database, preserving the change in the passed transaction. This
method must be overridden in the derived class. method must be overridden in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def remove_place(self,handle,transaction): def remove_place(self,handle,transaction):
""" """
@ -946,7 +946,7 @@ class GrampsDbBase:
database, preserving the change in the passed transaction. This database, preserving the change in the passed transaction. This
method must be overridden in the derived class. method must be overridden in the derived class.
""" """
assert(False,"Needs to be overridden in the derived class") assert False, "Needs to be overridden in the derived class"
def has_person_handle(self,handle): def has_person_handle(self,handle):
""" """