Bug 3017: change old-style classes to new-style classes

svn: r12560
This commit is contained in:
Gerald Britton
2009-05-21 17:58:31 +00:00
parent 5befb6046b
commit 8c73b202c3
134 changed files with 220 additions and 215 deletions

View File

@@ -53,7 +53,7 @@ from DdTargets import DdTargets
from Errors import WindowActiveError
from Selectors import selector_factory
class ObjEntry:
class ObjEntry(object):
"""
Handles the selection of a existing or new Object. Supports Drag and Drop
to select the object.

View File

@@ -292,7 +292,7 @@ class EditFamilyEvent(EditEvent):
# Delete Query class
#
#-------------------------------------------------------------------------
class DelEventQuery:
class DelEventQuery(object):
def __init__(self, dbstate, uistate, event, person_list, family_list):
self.event = event
self.db = dbstate.db

View File

@@ -380,7 +380,7 @@ class ChildEmbedList(EmbeddedList):
else:
return ("", "")
class FastMaleFilter:
class FastMaleFilter(object):
def __init__(self, db):
self.db = db
@@ -389,7 +389,7 @@ class FastMaleFilter:
value = self.db.get_raw_person_data(handle)
return value[2] == gen.lib.Person.MALE
class FastFemaleFilter:
class FastFemaleFilter(object):
def __init__(self, db):
self.db = db

View File

@@ -301,7 +301,7 @@ class EditMedia(EditPrimary):
return cmp(cmp_obj.serialize(True)[1:],
self.obj.serialize()[1:]) != 0
class DeleteMediaQuery:
class DeleteMediaQuery(object):
def __init__(self, dbstate, uistate, media_handle, the_lists):
self.db = dbstate.db

View File

@@ -315,7 +315,7 @@ class EditNote(EditPrimary):
self.callback(self.obj.get_handle())
self.close()
class DeleteNoteQuery:
class DeleteNoteQuery(object):
def __init__(self, dbstate, uistate, note, the_lists):
self.note = note
self.db = dbstate.db

View File

@@ -301,7 +301,7 @@ class EditPlace(EditPrimary):
# DeletePlaceQuery
#
#-------------------------------------------------------------------------
class DeletePlaceQuery:
class DeletePlaceQuery(object):
def __init__(self, dbstate, uistate, place, person_list, family_list,
event_list):

View File

@@ -176,7 +176,7 @@ class EditRepository(EditPrimary):
def _cleanup_on_exit(self):
self.backref_tab.close()
class DelRepositoryQuery:
class DelRepositoryQuery(object):
def __init__(self, dbstate, uistate, repository, sources):
self.obj = repository
self.db = dbstate.db

View File

@@ -193,7 +193,7 @@ class EditSource(EditPrimary):
def _cleanup_on_exit(self):
self.backref_tab.close()
class DelSrcQuery:
class DelSrcQuery(object):
def __init__(self, dbstate, uistate, source, the_lists):
self.source = source
self.db = dbstate.db