Convert filters to use relative imports
svn: r20509
This commit is contained in:
parent
c754eb02f2
commit
9b3fd50329
@ -40,10 +40,10 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui.widgets import MonitoredMenu
|
||||
from ...widgets import MonitoredMenu
|
||||
from gramps.gen.lib import Citation
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.citation import (RegExpIdOf, HasIdOf, HasCitation,
|
||||
HasNoteMatchingSubstringOf,
|
||||
|
@ -39,10 +39,10 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from ... import widgets
|
||||
from gramps.gen.lib import Event, EventType
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.event import (RegExpIdOf, HasIdOf, HasNoteRegexp,
|
||||
HasNoteMatchingSubstringOf, MatchesFilter,
|
||||
|
@ -40,10 +40,10 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from ... import widgets
|
||||
from gramps.gen.lib import Event, EventType, Family, FamilyRelType
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.family import (RegExpIdOf, HasIdOf, RegExpFatherName,
|
||||
SearchFatherName, RegExpMotherName,
|
||||
|
@ -40,9 +40,9 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from ... import widgets
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.media import (RegExpIdOf, HasIdOf, HasMedia, HasTag,
|
||||
HasNoteRegexp, MatchesFilter,
|
||||
|
@ -40,10 +40,10 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from ... import widgets
|
||||
from gramps.gen.lib import Note, NoteType
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.note import (RegExpIdOf, HasIdOf, HasNote,
|
||||
MatchesFilter, HasTag)
|
||||
|
@ -41,11 +41,11 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from ... import widgets
|
||||
from gramps.gen.lib import Date, Event, EventType
|
||||
from gramps.gen.datehandler import displayer
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilter, rules
|
||||
from gramps.gen.filters.rules.person import (RegExpName, SearchName, RegExpIdOf,
|
||||
MatchIdOf, IsMale, IsFemale,
|
||||
|
@ -41,9 +41,9 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from ... import widgets
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.place import (RegExpIdOf, HasIdOf, HasPlace,
|
||||
HasNoteRegexp, HasNoteMatchingSubstringOf,
|
||||
|
@ -39,10 +39,10 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from ... import widgets
|
||||
from gramps.gen.lib import Repository, RepositoryType
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.repository import (RegExpIdOf, HasIdOf, HasRepo,
|
||||
HasNoteRegexp, MatchesFilter,
|
||||
|
@ -27,8 +27,8 @@ from gi.repository import Gdk
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Pango
|
||||
|
||||
from gramps.gui import widgets
|
||||
from gramps.gui.dbguielement import DbGUIElement
|
||||
from ... import widgets
|
||||
from ...dbguielement import DbGUIElement
|
||||
from gramps.gen.config import config
|
||||
|
||||
_RETURN = Gdk.keyval_from_name("Return")
|
||||
@ -228,7 +228,7 @@ class SidebarFilter(DbGUIElement):
|
||||
Callback which invokes the EditFilter dialog. Will create new
|
||||
filter if called if none is selected.
|
||||
"""
|
||||
from gramps.gui.editors import EditFilter
|
||||
from ...editors import EditFilter
|
||||
from gramps.gen.filters import FilterList, GenericFilterFactory
|
||||
from gramps.gen.const import CUSTOM_FILTERS
|
||||
the_filter = None
|
||||
|
@ -39,9 +39,9 @@ from gi.repository import Gtk
|
||||
# GRAMPS modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
from gramps.gui import widgets
|
||||
from gramps.gui.filters import build_filter_model
|
||||
from gramps.gui.filters.sidebar import SidebarFilter
|
||||
from ... import widgets
|
||||
from .. import build_filter_model
|
||||
from . import SidebarFilter
|
||||
from gramps.gen.filters import GenericFilterFactory, rules
|
||||
from gramps.gen.filters.rules.source import (RegExpIdOf, HasIdOf, HasSource,
|
||||
HasNoteMatchingSubstringOf,
|
||||
|
Loading…
Reference in New Issue
Block a user