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
Exemplo n.º 3
0
 def update(self, source, existing_member):
     source = MediaResource.update(self, source, existing_member)
     length = int(self.raw_headers['content-length'])
     return (source, length)
Exemplo n.º 4
0
 def create(self, source, slug=None):
     source = MediaResource.create(self, source, slug)
     length = int(self.raw_headers['content-length'])
     return (source, length)
Exemplo n.º 5
0
 def __init__(self, collection, **kwargs):
     MediaResource.__init__(self, collection, **kwargs)