Author: Gwadavel
Date: 2009-03-31 13:20:11 +0200 (Tue, 31 Mar 2009)
New Revision: 4281

Modified:
   software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin.py
Log:
Don't says  all CIA - commit lines, says only "svn commit"

Modified: software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin.py
===================================================================
--- software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin.py       
2009-03-31 10:49:36 UTC (rev 4280)
+++ software_suite_v2/software/scripts/pidgin/trunk/tux_pidgin.py       
2009-03-31 11:20:11 UTC (rev 4281)
@@ -85,6 +85,9 @@
 # tgp_away = True
 tgp_away = False
 
+#  Don't say svn commit, CIA alias
+ tgp_cia = True
+ #tgp_cia = False
 
 # Address and port of Tux HTTP server
 
@@ -94,8 +97,8 @@
 
 LANGUAGE = ""
 
-FR = {"say": "dit", "online": "est en ligne", "pidginoff": "pidgin n'est pas 
lancé", "pidginon": "Tux pidgin est démarré"}
-EN = {"say": "says", "online": "is on line", "pidginoff": "Pidgin is not 
launched", "pidginon": "TuxPidgin is started"}
+FR = {"say": "dit", "online": "est en ligne", "pidginoff": "pidgin n'est pas 
lancé", "pidginon": "Tux pidgin est démarré", "commit": "commit sur le s v n"}
+EN = {"say": "says", "online": "is on line", "pidginoff": "Pidgin is not 
launched", "pidginon": "TuxPidgin is started", "commit":"s v n commit"}
 
 class MessageParser(sgmllib.SGMLParser):
     """I found this snippets in this website :
@@ -167,9 +170,12 @@
     else:
         alias = name     
     #text = re.sub("<.*?>", "", text)#html2text
-    MessageP = MessageParser()
-    message = MessageP.strip(message)
-    text = "%s %s %s" % (alias, LANGUAGE["say"], message)
+    if tgp_cia and alias[:3] == "CIA":
+        message = LANGUAGE["commit"]
+    else:
+        MessageP = MessageParser()
+        message = MessageP.strip(message)
+        text = "%s %s %s" % (alias, LANGUAGE["say"], message)
     text = text.encode('utf-8')
     tux_speak(text)  
   


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to