def login(self, user, passwd):
        """login user passwd
        Performs the login operation for Security Center, storing the token
        that Security Center has generated for this login session for future
        queries.
        """
        data = self.raw_query('auth', 'login',
                             data={'username': user, 'password': passwd})
        self._token = data["token"]
        self._user = data
def login ( self , user , passwd ) : data = self . raw_query ( 'auth' , 'login' , data = { 'username' : user , 'password' : passwd } ) self . _token = data [ "token" ] self . _user = data
login user passwd
        Performs the login operation for Security Center, storing the token
        that Security Center has generated for this login session for future
        queries.