Logo Search packages:      
Sourcecode: babiloo version File versions  Download package

def babiloo-2.0.11::core::net::xmlrpc::OnlineService::_login (   self,
  username = "",
  password = "" 
) [private]

Login to the Server using username/password,
empty parameters means an anonymously login
Returns True if login sucessful, and False if not.

Definition at line 217 of file xmlrpc.py.

00217                                               :
        """Login to the Server using username/password,
        empty parameters means an anonymously login
        Returns True if login sucessful, and False if not.
        """
        self.log.debug("----------------")
        self.log.debug("Logging in (username: %r)..."% username)
        info = self.xmlrpc_server.LogIn(username, password, self.language, self.user_agent)
        self.log.debug("Login ended in %s with status: %s"% (info['seconds'], info['status']))
        if info['status'] == "200 OK":
            self.log.debug("Session ID: %s"% info['token'])
            self.log.debug("----------------")
            self._token = info['token']
            return True
        else:
            # force token reset
            self.log.debug("----------------")
            self._token = None
            return False

    def logout(self):


Generated by  Doxygen 1.6.0   Back to index