@classmethod
    def from_fieldstorage(cls, fs):
        obj = cls()
        # fs.list can be None when there's nothing to parse
        for field in fs.list or ():
            if field.filename:
                obj.add(field.name, field)
            else:
                obj.add(field.name, field.value)
        return obj
Create a dict from a cgi.FieldStorage instance
dataset/ETHPy150Open benoitc/restkit/restkit/datastructures.py/MultiDict.from_fieldstorage