Bug 3011: change old-style classes to new-style classes
svn: r12559
This commit is contained in:
@@ -32,7 +32,7 @@ from gettext import gettext as _
|
||||
# Rule
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
class Rule:
|
||||
class Rule(object):
|
||||
"""Base rule class."""
|
||||
|
||||
labels = []
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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.
|
||||
|
@@ -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']
|
||||
|
@@ -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
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user