wsme.protocol.media_type_accept

Here are the examples of the python api wsme.protocol.media_type_accept taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: wsme Source File: protocol.py
Function: accept
    def accept(self, request):
        for dataformat in self.dataformats:
            if request.path.endswith('.' + dataformat):
                return True
        return media_type_accept(request, self.content_types)