bridge: constructor and template improved, documentation added
This commit is contained in:
parent
f1dab02efa
commit
793e6d6c3d
1 changed files with 221 additions and 22 deletions
|
|
@ -108,7 +108,7 @@ class SatXMPPClient(client.XMPPClient):
|
|||
|
||||
def initializationFailed(self, reason):
|
||||
print ("initializationFailed: %s" % reason)
|
||||
self.host_app.bridge.connection_error(self.profile,"AUTH_ERROR")
|
||||
self.host_app.bridge.connection_error("AUTH_ERROR", self.profile)
|
||||
try:
|
||||
client.XMPPClient.initializationFailed(self, reason)
|
||||
except:
|
||||
|
|
@ -793,7 +793,7 @@ class SAT(service.Service):
|
|||
return ""
|
||||
|
||||
def callMenu(self, category, name, type="NORMAL", profile_key='@DEFAULT@'):
|
||||
"""return the help string of the menu"""
|
||||
"""return the id of the action"""
|
||||
profile = self.memory.getProfileName(profile_key)
|
||||
if not profile_key:
|
||||
error (_('Non-exsitant profile'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue