diff frontends/src/quick_frontend/quick_app.py @ 272:1d2e0dfe7114

bridge: core & frontend sides of bridge are now generated
author Goffi <goffi@goffi.org>
date Mon, 24 Jan 2011 22:05:04 +0100
parents c4b84a2d2ad1
children c1ad04586edf
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py	Mon Jan 24 21:48:09 2011 +0100
+++ b/frontends/src/quick_frontend/quick_app.py	Mon Jan 24 22:05:04 2011 +0100
@@ -119,9 +119,9 @@
             self.profile = profile
         
         ###now we get the essential params###
-        self.profiles[profile]['whoami']=JID(self.bridge.getParamA("JabberID","Connection", profile))
-        autoconnect = self.bridge.getParamA("autoconnect","Connection", profile) == "true"
-        self.profiles[profile]['watched']=self.bridge.getParamA("Watched", "Misc", profile).split() #TODO: put this in a plugin
+        self.profiles[profile]['whoami']=JID(self.bridge.getParamA("JabberID","Connection", profile_key=profile))
+        autoconnect = self.bridge.getParamA("autoconnect","Connection", profile_key=profile) == "true"
+        self.profiles[profile]['watched']=self.bridge.getParamA("Watched", "Misc", profile_key=profile).split() #TODO: put this in a plugin
 
         ## misc ##
         self.profiles[profile]['onlineContact'] = set()  #FIXME: temporary
@@ -440,7 +440,7 @@
         """Must be called when the frontend is terminating"""
         #TODO: mange multi-profile here
         try:
-            autodisconnect = self.bridge.getParamA("autodisconnect","Connection", self.profile) == "true"
+            autodisconnect = self.bridge.getParamA("autodisconnect","Connection", profile_key=self.profile) == "true"
             if autodisconnect and self.bridge.isConnected(self.profile):
                 #Does the user want autodisconnection ?
                 self.bridge.disconnect(self.profile)