6 self.p = purple.Purple()
12 def set_protocol(self, protocol):
13 for i in self.p.get_protocols():
15 print "-- NULLCLIENT --: Choosing %s as protocol" % protocol
17 print "-- NULLCLIENT --: Protocol successfully chosen: %s" % i[0]
20 def new_account(self, username, protocol, password):
21 self.account = purple.Account(username, protocol)
22 self.account.set_password(password)
23 self.account.set_enabled("carman-purple-python", True)
25 if __name__ == '__main__':
29 client.set_protocol("XMPP")
30 client.new_account("seu_email@email.com", client.protocol,"sua_senha_aqui")
33 ecore.main_loop_begin()