def _extract_request_data(self): if self.request.content_type == 'application/vnd.xls': data = self.__extract_from_xls(self.request.body) # The freshly created entity needs an ID for subsequent updates. data.id = self.context.id else: data = PutMemberView._extract_request_data(self) return data
def __init__(self, resource, request, **kw): PutMemberView.__init__(self, resource, request, **kw) self.__generator = None