def _setup_serializers(self):
acceptable_offers = self.request.accept.acceptable_offers(self.response.supported_mime_types)<EOL>if len(acceptable_offers) > <NUM_LIT:0>:<EOL><INDENT>best_accept_match = acceptable_offers[<NUM_LIT:0>][<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>best_accept_match = self.response.default_serializer.content_type()<EOL><DEDENT>self.logger.info("<STR_LIT>" % (<EOL>best_accept_match,<EOL>self.request.accept<EOL>))<EOL>self.response.content_type = best_accept_match<EOL>
Auto set the return serializer based on Accept headers
http://docs.webob.org/en/latest/reference.html#header-getters

Intersection of requested types and supported types tells us if we
can in fact respond in one of the request formats