summaryrefslogtreecommitdiff
path: root/src/core/completions.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-02-09 12:13:26 +0100
committermathieui <mathieui@mathieui.net>2015-02-09 22:35:41 +0100
commit9b773e6909e2322ddcb05067505a761beec2f3ca (patch)
tree6f2ceba212a7837d25f313aa23c391cc68058892 /src/core/completions.py
parent51b84645f015428661247f966f6dd03e15ad5acc (diff)
downloadpoezio-9b773e6909e2322ddcb05067505a761beec2f3ca.tar.gz
poezio-9b773e6909e2322ddcb05067505a761beec2f3ca.tar.bz2
poezio-9b773e6909e2322ddcb05067505a761beec2f3ca.tar.xz
poezio-9b773e6909e2322ddcb05067505a761beec2f3ca.zip
Change the bookmark interface
move the modulename to bookmark → boookmarks add a bookmarklist class with remove module-level variables do a features check on startup before trying to fetch the bookmarks
Diffstat (limited to 'src/core/completions.py')
-rw-r--r--src/core/completions.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/completions.py b/src/core/completions.py
index c793fa52..68cbb24a 100644
--- a/src/core/completions.py
+++ b/src/core/completions.py
@@ -8,7 +8,6 @@ log = logging.getLogger(__name__)
import os
from functools import reduce
-import bookmark
import common
import pep
import tabs
@@ -96,7 +95,7 @@ def completion_join(self, the_input):
relevant_rooms = []
relevant_rooms.extend(sorted(self.pending_invites.keys()))
- bookmarks = {str(elem.jid): False for elem in bookmark.bookmarks}
+ bookmarks = {str(elem.jid): False for elem in self.bookmarks}
for tab in self.get_tabs(tabs.MucTab):
name = tab.name
if name in bookmarks and not tab.joined:
@@ -192,7 +191,7 @@ def completion_bookmark(self, the_input):
def completion_remove_bookmark(self, the_input):
"""Completion for /remove_bookmark"""
- return the_input.new_completion([bm.jid for bm in bookmark.bookmarks], 1, quotify=False)
+ return the_input.new_completion([bm.jid for bm in self.bookmarks], 1, quotify=False)
def completion_decline(self, the_input):