# HG changeset patch
# User Goffi <goffi@goffi.org>
# Date 1277795999 -28800
# Node ID 18b0cf49a6f1180e82bc6783d567aa1a353289cd
# Parent  e24e080e6b1656e464173f86f2f3e18f18c20c4a
Plugin CS minor changes (Events & Couch Search tabs temporarly removed, open_new_tab user to open link in browser)

diff -r e24e080e6b16 -r 18b0cf49a6f1 plugins/plugin_misc_cs.py
--- a/plugins/plugin_misc_cs.py	Mon Jun 28 17:19:35 2010 +0800
+++ b/plugins/plugin_misc_cs.py	Tue Jun 29 15:19:59 2010 +0800
@@ -177,8 +177,8 @@
         interface.addText("(use %name% for contact name and %firstname% for guessed first name)")
         interface.addTextBox('message')
         interface.addButton('plugin_CS_sendMessage', 'sendMessage', _('send'), fields_back=['friends','subject','message'])
-        interface.addCategory(_("Events"), "vertical")
-        interface.addCategory(_("Couch search"), "vertical")
+        #interface.addCategory(_("Events"), "vertical") #TODO: coming soon, hopefuly :)
+        #interface.addCategory(_("Couch search"), "vertical")
         return interface.toXml()
 
     def __meetingPageCB(self, html):
@@ -270,7 +270,7 @@
         soup = BeautifulSoup(html)
         for tag in soup.findAll(lambda tag: tag.name=='strong' and tag.a and tag.a['href'].startswith('messages.html?message_status=inbox')):
             link = "http://www.couchsurfing.org/"+str(tag.a['href'])
-            webbrowser.open(link, new=2) #TODO: the web browser need to already have CS cookies (i.e. already be opened & logged on CS, or be permanently loggued), a warning to the user should be sent
+            webbrowser.open_new_tab(link) #TODO: the web browser need to already have CS cookies (i.e. already be opened & logged on CS, or be permanently loggued), a warning to the user should be sent/or a balloon-tip
 
     def showUnreadMessages(self, id, data, profile):
         """Called when user want to see all unread messages in the external browser"""