(self)
Fetch a specific order from the server
Fetch a specific order from the server
Fetch a specific order from the server
def _fetch(self):
        """Fetch a specific order from the server"""
        assert (self.uuid is not None)
        assert (self.auth_token is not None)

        r = requests.get(self.server + '/order/' + self.uuid,
                         headers={'X-Auth-Token': self.auth_token},
                         cert=(self.tls_cert, self.tls_key))

        if (r.status_code != requests.codes.ok):
            self._print_errors(r)

        r.raise_for_status()

        self.order = r.json()
        logger.debug(json.dumps(r.json(), indent=4, sort_keys=True))
def _fetch ( self ) : assert ( self . uuid is not None ) assert ( self . auth_token is not None ) r = requests . get ( self . server + '/order/' + self . uuid , headers = { 'X-Auth-Token' : self . auth_token } , cert = ( self . tls_cert , self . tls_key ) ) if ( r . status_code != requests . codes . ok ) : self . _print_errors ( r ) r . raise_for_status ( ) self . order = r . json ( ) logger . debug ( json . dumps ( r . json ( ) , indent = 4 , sort_keys = True ) )