[kupfer] plugin.nautilusselection, .selection: Specify qf_id for Selection objects
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.nautilusselection, .selection: Specify qf_id for Selection objects
- Date: Thu, 10 Sep 2009 04:14:39 +0000 (UTC)
commit 8e1e52dc16d58aa464278ccb51da9d70a2498fcd
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Sep 10 02:42:46 2009 +0200
plugin.nautilusselection, .selection: Specify qf_id for Selection objects
Specify the necessary identifiers so that we can match these objects
to kupfer URIs.
kupfer/plugin/nautilusselection.py | 1 +
kupfer/plugin/selection.py | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/nautilusselection.py b/kupfer/plugin/nautilusselection.py
index 13f6b0e..9fc5409 100644
--- a/kupfer/plugin/nautilusselection.py
+++ b/kupfer/plugin/nautilusselection.py
@@ -14,6 +14,7 @@ __version__ = ""
__author__ = "Ulrik Sverdrup <ulrik sverdrup gmail com>"
class SelectedFile (FileLeaf):
+ qf_id = "selectedfile"
def __init__(self, filepath):
"""@filepath is a filesystem byte string `str`"""
basename = gobject.filename_display_basename(filepath)
diff --git a/kupfer/plugin/selection.py b/kupfer/plugin/selection.py
index 51d574c..3f23919 100644
--- a/kupfer/plugin/selection.py
+++ b/kupfer/plugin/selection.py
@@ -11,6 +11,7 @@ __version__ = ""
__author__ = "Ulrik Sverdrup <ulrik sverdrup gmail com>"
class SelectedText (TextLeaf):
+ qf_id = "selectedtext"
def __init__(self, text):
text = objects.tounicode(text)
lines = filter(None, text.splitlines())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]