Esempio n. 1
0
 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
Esempio n. 2
0
 def __init__(self, resource, request, **kw):
     PutMemberView.__init__(self, resource, request, **kw)
     self.__generator = None