[Rigo] fixup several undefined references (thanks pylint)

Did I mention I hate Python?
This commit is contained in:
Fabio Erculiani
2012-03-29 19:42:29 +02:00
parent b928757e57
commit b62e46abfc
4 changed files with 3 additions and 26 deletions
+1 -1
View File
@@ -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 _
-24
View File
@@ -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)
+1 -1
View File
@@ -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