Exemplo n.º 1
0
    def update(self, source, existing_member=None):
        length = int(self.raw_headers['content-length'])
        qs = parse_query_string(source.read(length))

        qs = MediaResource.update(self, qs, existing_member)

        return qs
Exemplo n.º 2
0
    def create(self, source, slug=None):
        length = int(self.raw_headers['content-length'])
        qs = parse_query_string(source.read(length))

        qs = MediaResource.create(self, qs, slug)

        return qs