Example #1
0
    def __init__(self, *args, **kwargs):
        GlobusHTTPResponse.__init__(self, *args, **kwargs)

        # call the helper on everything in the response array
        self._by_resource_server = dict(
            (unprocessed_item['resource_server'],
             _convert_token_info_dict(unprocessed_item))
            for unprocessed_item in self.data)
Example #2
0
    def __init__(self, *args, **kwargs):
        GlobusHTTPResponse.__init__(self, *args, **kwargs)

        # call the helper at the top level
        self._by_resource_server = {
            self.resource_server: _convert_token_info_dict(self)
        }
        # call the helper on everything in 'other_tokens'
        self._by_resource_server.update(
            dict((unprocessed_item['resource_server'],
                  _convert_token_info_dict(unprocessed_item))
                 for unprocessed_item in self.other_tokens))
 def __init__(self, *args, **kwargs):
     GlobusHTTPResponse.__init__(self, *args, **kwargs)
     self._init_rs_dict()
     self._init_scopes_getter()
 def __init__(self, *args, **kwargs):
     GlobusHTTPResponse.__init__(self, *args, **kwargs)
     self._init_rs_dict()
     self._init_scopes_getter()