[hamster-applet] bringing description back



commit 67e7beeca8f754d22fff0daf8bdd2067f50c2a98
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sat Jan 16 17:24:19 2010 +0000

    bringing description back

 hamster/stuff.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/hamster/stuff.py b/hamster/stuff.py
index b3d15cc..842febb 100644
--- a/hamster/stuff.py
+++ b/hamster/stuff.py
@@ -259,6 +259,11 @@ def parse_activity_input(text):
         elif res.start_time:
             text = text[text.find(" ")+1:]
 
+    #see if we have description of activity somewhere here (delimited by comma)
+    if text.find(",") > 0:
+        text, res.description = text.split(",", 1)
+        res.description = res.description.strip()
+
     if text.find("@") > 0:
         text, res.category_name = text.split("@", 1)
         res.category_name = res.category_name.strip()



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