Exemplo n.º 1
0
class BitcasaInstance():
    """
    All the methods of this class are published as XML RPC methods
    """

    def __init__(self, username, password):
        self.username = username
        self.password = password
        self.bitcasa = Bitcasa(self.username, self.password)

    def ping(self):
        return self.bitcasa.ping()
    
    def deadlock(self):
        pass
Exemplo n.º 2
0
 def __init__(self, username, password):
     self.username = username
     self.password = password
     self.bitcasa = Bitcasa(self.username, self.password)