comparison plugins/plugin_xep_0045.py @ 91:39c672544593

Tarot: bidding phase - quick_app: command line is now parsed, "profile" option allow to select it - xml_tools: list-single is now managed - plugin tarot: method and signal to manage contract (contrat): tarotChooseContrat & tarotGameContratChoosed - wix: Q&D Form hack to manage more generic form (not only registration), used to show contract selection form
author Goffi <goffi@goffi.org>
date Thu, 27 May 2010 19:26:19 +0930
parents ace2af8abc5a
children 2f87651a5ad8
comparison
equal deleted inserted replaced
90:4020931569b8 91:39c672544593
80 """check if profile is used and connected 80 """check if profile is used and connected
81 if profile known but disconnected, remove it from known profiles 81 if profile known but disconnected, remove it from known profiles
82 @param profile: profile to check 82 @param profile: profile to check
83 @return: True if the profile is known and connected, else False""" 83 @return: True if the profile is known and connected, else False"""
84 if not profile or not self.clients.has_key(profile) or not self.host.isConnected(profile): 84 if not profile or not self.clients.has_key(profile) or not self.host.isConnected(profile):
85 error (_('Unknown or disconnected profile')) 85 error (_('Unknown or disconnected profile (%s)') % profile)
86 if self.clients.has_key(profile): 86 if self.clients.has_key(profile):
87 del self.clients[profile] 87 del self.clients[profile]
88 return False 88 return False
89 return True 89 return True
90 90