[hamster-applet] don't do any magic, add fact as we received it



commit 87af59a2120131094d67d4a4eda35ad6025b2821
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sat Jan 16 18:09:58 2010 +0000

    don't do any magic, add fact as we received it

 hamster/applet.py |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/hamster/applet.py b/hamster/applet.py
index 0432891..0549f2e 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -524,15 +524,10 @@ class HamsterApplet(object):
         fact = tree.get_selected_fact()
 
         if fact:
-            activity = fact['name']
-            if fact['category']:
-                activity = '%s %s' % (activity, fact['category'])
-
-            tags = fact["tags"]
-            if fact["description"]:
-                tags.append(fact["description"])
-
-            runtime.storage.add_fact(activity, ", ".join(tags))
+            runtime.storage.add_fact(fact["name"],
+                                     ", ".join(fact["tags"]),
+                                     category_name = fact["category"],
+                                     description = fact["description"])
             runtime.dispatcher.dispatch('panel_visible', False)
 
 



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