def _parse_response(self, raw): response = Response() response.raw = raw response._parsed = raw if raw.has_key('fields'): response.success = True response._model_attributes = raw['fields'] elif raw.has_key('success'): response.success = raw['success'] return response