[kupfer] tracker: Fix add/remove tag actions



commit a863f2524d66fef283b73fb840853fe59a3f9c8f
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Mar 29 16:22:30 2011 +0200

    tracker: Fix add/remove tag actions
    
    A previous change here broke these actions by using the wrong
    variable. Caught with pyflakes.

 kupfer/plugin/tracker.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/plugin/tracker.py b/kupfer/plugin/tracker.py
index 03b1baf..8322d19 100644
--- a/kupfer/plugin/tracker.py
+++ b/kupfer/plugin/tracker.py
@@ -22,7 +22,7 @@ from xml.etree.cElementTree import ElementTree
 import gobject
 
 from kupfer.objects import Action, Source, Leaf
-from kupfer.objects import TextLeaf, SourceLeaf, TextSource, FileLeaf
+from kupfer.objects import TextLeaf, SourceLeaf, FileLeaf
 from kupfer.obj.objects import ConstructFileLeaf
 from kupfer import utils, pretty
 from kupfer import kupferstring
@@ -224,7 +224,7 @@ class TrackerAddTag (Action):
 	def activate(self, leaf, obj):
 		lpath = leaf.object
 		tag = obj.object
-		utils.spawn_async(["tracker-tag", "--add=%s" % obj, lpath])
+		utils.spawn_async(["tracker-tag", "--add=%s" % tag, lpath])
 
 	def requires_object(self):
 		return True
@@ -256,7 +256,7 @@ class TrackerRemoveTag (Action):
 	def activate(self, leaf, obj):
 		lpath = leaf.object
 		tag = obj.object
-		utils.spawn_async(["tracker-tag", "--remove=%s" % obj, lpath])
+		utils.spawn_async(["tracker-tag", "--remove=%s" % tag, lpath])
 
 	def requires_object(self):
 		return True



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]