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

svn: r12559
This commit is contained in:
Gerald Britton
2009-05-21 17:19:50 +00:00
parent 316b997e6d
commit 021b754939
128 changed files with 229 additions and 235 deletions

View File

@@ -32,7 +32,7 @@ from gettext import gettext as _
# Rule
#
#-------------------------------------------------------------------------
class Rule:
class Rule(object):
"""Base rule class."""
labels = []

View File

@@ -30,7 +30,7 @@ import Config
_RETURN = gtk.gdk.keyval_from_name("Return")
_KP_ENTER = gtk.gdk.keyval_from_name("KP_Enter")
class SidebarFilter:
class SidebarFilter(object):
_FILTER_WIDTH = 200
_FILTER_ELLIPSIZE = pango.ELLIPSIZE_END

View File

@@ -40,7 +40,7 @@ from Filters._FilterParser import FilterParser
# FilterList
#
#-------------------------------------------------------------------------
class FilterList:
class FilterList(object):
"""
Container class for managing the generic filters.
It stores, saves, and loads the filters.

View File

@@ -30,7 +30,7 @@ import gen.lib
# GenericFilter
#
#-------------------------------------------------------------------------
class GenericFilter:
class GenericFilter(object):
"""Filter class that consists of several rules."""
logical_functions = ['or', 'and', 'xor', 'one']

View File

@@ -41,7 +41,7 @@ _KP_ENTER = gtk.gdk.keyval_from_name("KP_Enter")
# SearchBar
#
#-------------------------------------------------------------------------
class SearchBar:
class SearchBar(object):
def __init__( self, dbstate, uistate, on_apply, apply_done = None):
self.on_apply_callback = on_apply
self.apply_done_callback = apply_done

View File

@@ -24,7 +24,7 @@
Package providing filtering framework for GRAMPS.
"""
class SearchFilter:
class SearchFilter(object):
def __init__(self, func, text, invert):
self.func = func
self.text = text.upper()