GEPS008: Moved Bookmarks module

svn: r19776
This commit is contained in:
Nick Hall 2012-06-06 18:36:23 +00:00
parent 308f2616ba
commit 32b61fc60f
27 changed files with 48 additions and 49 deletions

View File

@ -2,7 +2,6 @@
# #
# Python files # Python files
# #
src/Bookmarks.py
src/const.py src/const.py
src/DateEdit.py src/DateEdit.py
src/ExportAssistant.py src/ExportAssistant.py
@ -451,6 +450,7 @@ src/gui/selectors/selectrepository.py
src/gui/selectors/selectsource.py src/gui/selectors/selectsource.py
# gui/views - the GUI views package # gui/views - the GUI views package
src/gui/views/bookmarks.py
src/gui/views/listview.py src/gui/views/listview.py
src/gui/views/navigationview.py src/gui/views/navigationview.py
src/gui/views/pageview.py src/gui/views/pageview.py
@ -713,7 +713,7 @@ src/gui/glade/reorder.glade
src/gui/glade/tipofday.glade src/gui/glade/tipofday.glade
src/gui/glade/displaystate.glade src/gui/glade/displaystate.glade
src/gui/glade/addmedia.glade src/gui/glade/addmedia.glade
src/gui/glade/questiondialog.glade src/gui/glade/dialog.glade
src/gui/glade/configure.glade src/gui/glade/configure.glade
src/gui/glade/dateedit.glade src/gui/glade/dateedit.glade
src/gui/glade/editsource.glade src/gui/glade/editsource.glade
@ -751,7 +751,7 @@ src/gui/glade/mergerepository.glade
src/gui/glade/mergesource.glade src/gui/glade/mergesource.glade
src/gui/glade/plugins.glade src/gui/glade/plugins.glade
src/gui/glade/rule.glade src/gui/glade/rule.glade
src/gui/glade/scratchpad.glade src/gui/glade/clipboard.glade
src/gui/glade/papermenu.glade src/gui/glade/papermenu.glade
src/gui/glade/updateaddons.glade src/gui/glade/updateaddons.glade
src/plugins/tool/notrelated.glade src/plugins/tool/notrelated.glade

View File

@ -14,7 +14,6 @@ gdirdir=$(prefix)/share/gramps
gdir_PYTHON = \ gdir_PYTHON = \
AutoComp.py\ AutoComp.py\
Bookmarks.py\
config.py\ config.py\
const.py\ const.py\
constfunc.py\ constfunc.py\

View File

@ -9,7 +9,7 @@ dist_pkgdata_DATA = \
mergedata.glade\ mergedata.glade\
plugins.glade\ plugins.glade\
rule.glade\ rule.glade\
scratchpad.glade\ clipboard.glade\
papermenu.glade \ papermenu.glade \
grampletpane.glade \ grampletpane.glade \
baseselector.glade \ baseselector.glade \
@ -17,7 +17,7 @@ dist_pkgdata_DATA = \
tipofday.glade \ tipofday.glade \
displaystate.glade \ displaystate.glade \
addmedia.glade \ addmedia.glade \
questiondialog.glade \ dialog.glade \
configure.glade \ configure.glade \
dateedit.glade \ dateedit.glade \
editsource.glade \ editsource.glade \

View File

@ -11,6 +11,7 @@ pkgpythondir = $(datadir)/@PACKAGE@/gui/views
pkgpython_PYTHON = \ pkgpython_PYTHON = \
__init__.py \ __init__.py \
bookmarks.py \
listview.py \ listview.py \
navigationview.py \ navigationview.py \
pageview.py \ pageview.py \

View File

@ -54,7 +54,7 @@ import Utils
from gen.display.name import displayer as name_displayer from gen.display.name import displayer as name_displayer
from gui.dialog import ErrorDialog, QuestionDialog from gui.dialog import ErrorDialog, QuestionDialog
import Errors import Errors
import Bookmarks from gui.views.bookmarks import PersonBookmarks
import config import config
from gui.ddtargets import DdTargets from gui.ddtargets import DdTargets
from gui.editors import EditPerson from gui.editors import EditPerson
@ -135,7 +135,7 @@ class BasePersonView(ListView):
self, title, pdata, dbstate, uistate, self, title, pdata, dbstate, uistate,
BasePersonView.COLUMN_NAMES, len(BasePersonView.COLUMN_NAMES), BasePersonView.COLUMN_NAMES, len(BasePersonView.COLUMN_NAMES),
model, signal_map, dbstate.db.get_bookmarks(), model, signal_map, dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, nav_group, PersonBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=PersonSidebarFilter, filter_class=PersonSidebarFilter,
markup=BasePersonView.MARKUP_COLS) markup=BasePersonView.MARKUP_COLS)

View File

@ -49,7 +49,7 @@ import gen.lib
from gui.views.listview import ListView from gui.views.listview import ListView
from gui.utils import add_menuitem from gui.utils import add_menuitem
import Errors import Errors
import Bookmarks from gui.views.bookmarks import PlaceBookmarks
import config import config
from gui.dialog import ErrorDialog from gui.dialog import ErrorDialog
from gui.pluginmanager import GuiPluginManager from gui.pluginmanager import GuiPluginManager
@ -141,7 +141,7 @@ class PlaceBaseView(ListView):
self.COLUMN_NAMES, 14, self.COLUMN_NAMES, 14,
model, signal_map, model, signal_map,
dbstate.db.get_place_bookmarks(), dbstate.db.get_place_bookmarks(),
Bookmarks.PlaceBookmarks, nav_group, PlaceBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=PlaceSidebarFilter, markup=markup) filter_class=PlaceSidebarFilter, markup=markup)

View File

@ -51,7 +51,6 @@ from gen.display.name import displayer as _nd
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
from libformatting import FormattingHelper from libformatting import FormattingHelper
import Errors import Errors
import Bookmarks
import const import const
import constfunc import constfunc
from gui.managedwindow import ManagedWindow from gui.managedwindow import ManagedWindow

View File

@ -50,7 +50,7 @@ from gen.plug import CATEGORY_QR_CITATION
import gen.lib import gen.lib
from gui.views.listview import ListView from gui.views.listview import ListView
import Utils import Utils
import Bookmarks from gui.views.bookmarks import CitationBookmarks
import Errors import Errors
from gui.ddtargets import DdTargets from gui.ddtargets import DdTargets
from gui.dialog import ErrorDialog from gui.dialog import ErrorDialog
@ -139,7 +139,7 @@ class CitationListView(ListView):
self.COLUMN_NAMES, len(self.COLUMN_NAMES), self.COLUMN_NAMES, len(self.COLUMN_NAMES),
CitationListModel, signal_map, CitationListModel, signal_map,
dbstate.db.get_citation_bookmarks(), dbstate.db.get_citation_bookmarks(),
Bookmarks.CitationBookmarks, nav_group, CitationBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=CitationSidebarFilter, filter_class=CitationSidebarFilter,
markup = CitationListView.MARKUP_COLS) markup = CitationListView.MARKUP_COLS)

View File

@ -51,7 +51,7 @@ from gen.plug import CATEGORY_QR_SOURCE_OR_CITATION
import gen.lib import gen.lib
from gui.views.listview import ListView from gui.views.listview import ListView
import Utils import Utils
import Bookmarks from gui.views.bookmarks import CitationBookmarks
import Errors import Errors
from gui.ddtargets import DdTargets from gui.ddtargets import DdTargets
from gui.dialog import ErrorDialog from gui.dialog import ErrorDialog
@ -143,7 +143,7 @@ class CitationTreeView(ListView):
self.COLUMN_NAMES, len(self.COLUMN_NAMES), self.COLUMN_NAMES, len(self.COLUMN_NAMES),
CitationTreeModel, signal_map, CitationTreeModel, signal_map,
dbstate.db.get_citation_bookmarks(), dbstate.db.get_citation_bookmarks(),
Bookmarks.CitationBookmarks, nav_group, CitationBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=SourceSidebarFilter, filter_class=SourceSidebarFilter,
markup = CitationTreeView.MARKUP_COLS) markup = CitationTreeView.MARKUP_COLS)

View File

@ -51,7 +51,7 @@ from gui.views.listview import ListView
from gui.views.treemodels import EventModel from gui.views.treemodels import EventModel
import Utils import Utils
import Errors import Errors
import Bookmarks from gui.views.bookmarks import EventBookmarks
import config import config
from gui.ddtargets import DdTargets from gui.ddtargets import DdTargets
from gui.dialog import ErrorDialog from gui.dialog import ErrorDialog
@ -119,7 +119,7 @@ class EventView(ListView):
EventView.COLUMN_NAMES, len(EventView.COLUMN_NAMES), EventView.COLUMN_NAMES, len(EventView.COLUMN_NAMES),
EventModel, EventModel,
signal_map, dbstate.db.get_event_bookmarks(), signal_map, dbstate.db.get_event_bookmarks(),
Bookmarks.EventBookmarks, nav_group, EventBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=EventSidebarFilter, filter_class=EventSidebarFilter,
markup = EventView.MARKUP_COLS) markup = EventView.MARKUP_COLS)

View File

@ -49,7 +49,7 @@ import gen.lib
from gui.views.listview import ListView from gui.views.listview import ListView
from gui.views.treemodels import FamilyModel from gui.views.treemodels import FamilyModel
from gui.editors import EditFamily from gui.editors import EditFamily
import Bookmarks from gui.views.bookmarks import FamilyBookmarks
import Errors import Errors
import config import config
from gui.dialog import ErrorDialog from gui.dialog import ErrorDialog
@ -116,7 +116,7 @@ class FamilyView(ListView):
FamilyView.COLUMN_NAMES, len(FamilyView.COLUMN_NAMES), FamilyView.COLUMN_NAMES, len(FamilyView.COLUMN_NAMES),
FamilyModel, FamilyModel,
signal_map, dbstate.db.get_family_bookmarks(), signal_map, dbstate.db.get_family_bookmarks(),
Bookmarks.FamilyBookmarks, nav_group, FamilyBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=FamilySidebarFilter, filter_class=FamilySidebarFilter,
markup=FamilyView.MARKUP_COLS) markup=FamilyView.MARKUP_COLS)

View File

@ -59,7 +59,7 @@ from libformatting import FormattingHelper
import gen.lib import gen.lib
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Errors import Errors
import Bookmarks from gui.views.bookmarks import PersonBookmarks
from gui.editors import EditPerson from gui.editors import EditPerson
import gui.utils import gui.utils
@ -571,7 +571,7 @@ class FanChartView(NavigationView):
NavigationView.__init__(self, _('Fan Chart'), NavigationView.__init__(self, _('Fan Chart'),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, PersonBookmarks,
nav_group) nav_group)
dbstate.connect('active-changed', self.active_changed) dbstate.connect('active-changed', self.active_changed)

View File

@ -54,7 +54,7 @@ import gen.datehandler
from gen.display.name import displayer as _nd from gen.display.name import displayer as _nd
from PlaceUtils import conv_lat_lon from PlaceUtils import conv_lat_lon
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import PersonBookmarks
from maps import constants from maps import constants
from maps.geography import GeoGraphyView from maps.geography import GeoGraphyView
from gui.selectors import SelectorFactory from gui.selectors import SelectorFactory
@ -128,7 +128,7 @@ class GeoClose(GeoGraphyView):
GeoGraphyView.__init__(self, _("Have they been able to meet?"), GeoGraphyView.__init__(self, _("Have they been able to meet?"),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, PersonBookmarks,
nav_group) nav_group)
self.dbstate = dbstate self.dbstate = dbstate
self.uistate = uistate self.uistate = uistate

View File

@ -66,7 +66,7 @@ from gui.editors import EditPlace
from gui.selectors.selectplace import SelectPlace from gui.selectors.selectplace import SelectPlace
from gui.filters.sidebar import EventSidebarFilter from gui.filters.sidebar import EventSidebarFilter
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import EventBookmarks
from Utils import navigation_label from Utils import navigation_label
from maps.geography import GeoGraphyView from maps.geography import GeoGraphyView
@ -116,7 +116,7 @@ class GeoEvents(GeoGraphyView):
GeoGraphyView.__init__(self, _('Events places map'), GeoGraphyView.__init__(self, _('Events places map'),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_event_bookmarks(), dbstate.db.get_event_bookmarks(),
Bookmarks.EventBookmarks, EventBookmarks,
nav_group) nav_group)
self.dbstate = dbstate self.dbstate = dbstate
self.uistate = uistate self.uistate = uistate

View File

@ -54,7 +54,7 @@ import gen.datehandler
from gen.display.name import displayer as _nd from gen.display.name import displayer as _nd
from PlaceUtils import conv_lat_lon from PlaceUtils import conv_lat_lon
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import FamilyBookmarks
from maps import constants from maps import constants
from maps.geography import GeoGraphyView from maps.geography import GeoGraphyView
from gui.selectors import SelectorFactory from gui.selectors import SelectorFactory
@ -128,7 +128,7 @@ class GeoFamClose(GeoGraphyView):
GeoGraphyView.__init__(self, _("Have these two families been able to meet?"), GeoGraphyView.__init__(self, _("Have these two families been able to meet?"),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.FamilyBookmarks, FamilyBookmarks,
nav_group) nav_group)
self.dbstate = dbstate self.dbstate = dbstate
self.uistate = uistate self.uistate = uistate

View File

@ -66,7 +66,7 @@ from gui.editors import EditPlace
from gui.selectors.selectplace import SelectPlace from gui.selectors.selectplace import SelectPlace
from gui.filters.sidebar import FamilySidebarFilter from gui.filters.sidebar import FamilySidebarFilter
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import FamilyBookmarks
from Utils import navigation_label from Utils import navigation_label
from maps.geography import GeoGraphyView from maps.geography import GeoGraphyView
@ -116,7 +116,7 @@ class GeoFamily(GeoGraphyView):
GeoGraphyView.__init__(self, _('Family places map'), GeoGraphyView.__init__(self, _('Family places map'),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_family_bookmarks(), dbstate.db.get_family_bookmarks(),
Bookmarks.FamilyBookmarks, FamilyBookmarks,
nav_group) nav_group)
self.dbstate = dbstate self.dbstate = dbstate
self.uistate = uistate self.uistate = uistate

View File

@ -57,7 +57,7 @@ import gen.datehandler
from gen.display.name import displayer as _nd from gen.display.name import displayer as _nd
from PlaceUtils import conv_lat_lon from PlaceUtils import conv_lat_lon
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import PersonBookmarks
from maps import constants from maps import constants
from maps.geography import GeoGraphyView from maps.geography import GeoGraphyView
from gui.selectors import SelectorFactory from gui.selectors import SelectorFactory
@ -130,7 +130,7 @@ class GeoMoves(GeoGraphyView):
GeoGraphyView.__init__(self, _("Descendance of the active person."), GeoGraphyView.__init__(self, _("Descendance of the active person."),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, PersonBookmarks,
nav_group) nav_group)
self.dbstate = dbstate self.dbstate = dbstate
self.uistate = uistate self.uistate = uistate

View File

@ -67,7 +67,7 @@ from gui.editors import EditPlace
from gui.selectors.selectplace import SelectPlace from gui.selectors.selectplace import SelectPlace
from gui.filters.sidebar import PersonSidebarFilter from gui.filters.sidebar import PersonSidebarFilter
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import PersonBookmarks
import constants import constants
from Utils import navigation_label from Utils import navigation_label
from maps.geography import GeoGraphyView from maps.geography import GeoGraphyView
@ -144,7 +144,7 @@ class GeoPerson(GeoGraphyView):
GeoGraphyView.__init__(self, _("Person places map"), GeoGraphyView.__init__(self, _("Person places map"),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, PersonBookmarks,
nav_group) nav_group)
self.dbstate = dbstate self.dbstate = dbstate
self.uistate = uistate self.uistate = uistate

View File

@ -66,7 +66,7 @@ from gui.editors import EditPlace
from gui.selectors.selectplace import SelectPlace from gui.selectors.selectplace import SelectPlace
from gui.filters.sidebar import PlaceSidebarFilter from gui.filters.sidebar import PlaceSidebarFilter
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import PlaceBookmarks
from Utils import navigation_label from Utils import navigation_label
from maps.geography import GeoGraphyView from maps.geography import GeoGraphyView
@ -116,7 +116,7 @@ class GeoPlaces(GeoGraphyView):
GeoGraphyView.__init__(self, _('Places places map'), GeoGraphyView.__init__(self, _('Places places map'),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_place_bookmarks(), dbstate.db.get_place_bookmarks(),
Bookmarks.PlaceBookmarks, PlaceBookmarks,
nav_group) nav_group)
self.dbstate = dbstate self.dbstate = dbstate
self.uistate = uistate self.uistate = uistate

View File

@ -58,7 +58,7 @@ import gtk
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gui.views.navigationview import NavigationView from gui.views.navigationview import NavigationView
import Bookmarks from gui.views.bookmarks import PersonBookmarks
import Utils import Utils
import constfunc import constfunc
import config import config
@ -445,7 +445,7 @@ class HtmlView(NavigationView):
def __init__(self, pdata, dbstate, uistate, title=_('HtmlView')): def __init__(self, pdata, dbstate, uistate, title=_('HtmlView')):
NavigationView.__init__(self, title, pdata, dbstate, uistate, NavigationView.__init__(self, title, pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, PersonBookmarks,
nav_group=0 nav_group=0
) )
self.dbstate = dbstate self.dbstate = dbstate

View File

@ -56,7 +56,7 @@ import const
import constfunc import constfunc
import config import config
import Utils import Utils
import Bookmarks from gui.views.bookmarks import MediaBookmarks
import gen.mime import gen.mime
import gen.lib import gen.lib
from gen.db import DbTxn from gen.db import DbTxn
@ -129,7 +129,7 @@ class MediaView(ListView):
MediaView.COLUMN_NAMES, len(MediaView.COLUMN_NAMES), MediaView.COLUMN_NAMES, len(MediaView.COLUMN_NAMES),
MediaModel, MediaModel,
signal_map, dbstate.db.get_media_bookmarks(), signal_map, dbstate.db.get_media_bookmarks(),
Bookmarks.MediaBookmarks, nav_group, MediaBookmarks, nav_group,
filter_class=MediaSidebarFilter, filter_class=MediaSidebarFilter,
multiple=True) multiple=True)

View File

@ -49,7 +49,7 @@ from gui.views.listview import ListView
from gui.views.treemodels import NoteModel from gui.views.treemodels import NoteModel
import Utils import Utils
import Errors import Errors
import Bookmarks from gui.views.bookmarks import NoteBookmarks
import config import config
from gen.lib import Note from gen.lib import Note
from gui.ddtargets import DdTargets from gui.ddtargets import DdTargets
@ -108,7 +108,7 @@ class NoteView(ListView):
self, _('Notes'), pdata, dbstate, uistate, NoteView.COLUMN_NAMES, self, _('Notes'), pdata, dbstate, uistate, NoteView.COLUMN_NAMES,
len(NoteView.COLUMN_NAMES), NoteModel, signal_map, len(NoteView.COLUMN_NAMES), NoteModel, signal_map,
dbstate.db.get_note_bookmarks(), dbstate.db.get_note_bookmarks(),
Bookmarks.NoteBookmarks, nav_group, NoteBookmarks, nav_group,
filter_class=NoteSidebarFilter, filter_class=NoteSidebarFilter,
multiple=True) multiple=True)

View File

@ -60,7 +60,7 @@ from gui.editors import EditPerson, EditFamily
from gui.ddtargets import DdTargets from gui.ddtargets import DdTargets
import cPickle as pickle import cPickle as pickle
import config import config
import Bookmarks from gui.views.bookmarks import PersonBookmarks
import const import const
import constfunc import constfunc
from gui.dialog import RunDatabaseRepair, ErrorDialog from gui.dialog import RunDatabaseRepair, ErrorDialog
@ -689,7 +689,7 @@ class PedigreeView(NavigationView):
def __init__(self, pdata, dbstate, uistate, nav_group=0): def __init__(self, pdata, dbstate, uistate, nav_group=0):
NavigationView.__init__(self, _('Pedigree'), pdata, dbstate, uistate, NavigationView.__init__(self, _('Pedigree'), pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, PersonBookmarks,
nav_group) nav_group)
self.func_list.update({ self.func_list.update({

View File

@ -60,7 +60,7 @@ import config
from gui import widgets from gui import widgets
from gui.selectors import SelectorFactory from gui.selectors import SelectorFactory
import Errors import Errors
import Bookmarks from gui.views.bookmarks import PersonBookmarks
import const import const
from Utils import preset_name from Utils import preset_name
from gen.utils import get_birth_or_fallback, get_death_or_fallback from gen.utils import get_birth_or_fallback, get_death_or_fallback
@ -135,7 +135,7 @@ class RelationshipView(NavigationView):
NavigationView.__init__(self, _('Relationships'), NavigationView.__init__(self, _('Relationships'),
pdata, dbstate, uistate, pdata, dbstate, uistate,
dbstate.db.get_bookmarks(), dbstate.db.get_bookmarks(),
Bookmarks.PersonBookmarks, PersonBookmarks,
nav_group) nav_group)
self.func_list.update({ self.func_list.update({

View File

@ -39,7 +39,7 @@ import gtk
import gen.lib import gen.lib
from gui.views.listview import ListView from gui.views.listview import ListView
from gui.views.treemodels import RepositoryModel from gui.views.treemodels import RepositoryModel
import Bookmarks from gui.views.bookmarks import RepoBookmarks
import Errors import Errors
import config import config
from gui.editors import EditRepository, DeleteRepositoryQuery from gui.editors import EditRepository, DeleteRepositoryQuery
@ -125,7 +125,7 @@ class RepositoryView(ListView):
RepositoryView.COLUMN_NAMES, len(RepositoryView.COLUMN_NAMES), RepositoryView.COLUMN_NAMES, len(RepositoryView.COLUMN_NAMES),
RepositoryModel, signal_map, RepositoryModel, signal_map,
dbstate.db.get_repo_bookmarks(), dbstate.db.get_repo_bookmarks(),
Bookmarks.RepoBookmarks, nav_group, RepoBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=RepoSidebarFilter) filter_class=RepoSidebarFilter)

View File

@ -44,7 +44,7 @@ import config
from gui.views.listview import ListView from gui.views.listview import ListView
from gui.views.treemodels import SourceModel from gui.views.treemodels import SourceModel
import Utils import Utils
import Bookmarks from gui.views.bookmarks import SourceBookmarks
import Errors import Errors
from gui.ddtargets import DdTargets from gui.ddtargets import DdTargets
from gui.dialog import ErrorDialog from gui.dialog import ErrorDialog
@ -112,7 +112,7 @@ class SourceView(ListView):
SourceView.COLUMN_NAMES, len(SourceView.COLUMN_NAMES), SourceView.COLUMN_NAMES, len(SourceView.COLUMN_NAMES),
SourceModel, signal_map, SourceModel, signal_map,
dbstate.db.get_source_bookmarks(), dbstate.db.get_source_bookmarks(),
Bookmarks.SourceBookmarks, nav_group, SourceBookmarks, nav_group,
multiple=True, multiple=True,
filter_class=SourceSidebarFilter) filter_class=SourceSidebarFilter)