[Rigo] fixup several undefined references (thanks pylint)
Did I mention I hate Python?
This commit is contained in:
@@ -743,7 +743,7 @@ class ApplicationMetadata(object):
|
||||
const_debug_write(
|
||||
__name__,
|
||||
"Application{%s}.download_images_async: %s" % (
|
||||
self._pkg_match, err,))
|
||||
package_key, err,))
|
||||
finally:
|
||||
# ignore exceptions, if any, and always
|
||||
# call callback.
|
||||
|
||||
@@ -35,6 +35,7 @@ from RigoDaemon.enums import AppActions as DaemonAppActions
|
||||
|
||||
from entropy.const import etpConst, const_debug_write, \
|
||||
const_debug_enabled, const_convert_to_unicode, const_isunicode
|
||||
from entropy.services.client import WebService
|
||||
from entropy.misc import ParallelTask
|
||||
from entropy.i18n import _
|
||||
|
||||
|
||||
@@ -635,27 +635,3 @@ class AppTreeView(Gtk.TreeView):
|
||||
if not res:
|
||||
return False
|
||||
return self.get_path_at_pos(x, y)[0] == self.get_cursor()[0]
|
||||
|
||||
|
||||
def on_entry_changed(widget, data):
|
||||
|
||||
def _work():
|
||||
new_text = widget.get_text()
|
||||
(view, enquirer) = data
|
||||
|
||||
# FIXME lxnay
|
||||
enquirer.set_query(get_query_from_search_entry(new_text),
|
||||
limit=100*1000,
|
||||
nonapps_visible=NonAppVisibility.ALWAYS_VISIBLE)
|
||||
|
||||
store = view.tree_view.get_model()
|
||||
store.clear()
|
||||
|
||||
store.set_from_matches(enquirer.matches)
|
||||
|
||||
while Gtk.events_pending():
|
||||
Gtk.main_iteration()
|
||||
|
||||
if widget.stamp:
|
||||
GObject.source_remove(widget.stamp)
|
||||
widget.stamp = GObject.timeout_add(250, _work)
|
||||
|
||||
@@ -30,7 +30,7 @@ from rigo.utils import build_register_url, open_url, escape_markup, \
|
||||
|
||||
from entropy.const import etpConst, const_convert_to_unicode, \
|
||||
const_debug_write
|
||||
from entropy.i18n import _
|
||||
from entropy.i18n import _, ngettext
|
||||
from entropy.services.client import WebService
|
||||
from entropy.misc import ParallelTask
|
||||
|
||||
|
||||
Reference in New Issue
Block a user