def store_blob(self, content_type, filename, md5_hash, blob_file, creation):
    blob_key = self._generate_blob_key()

    # Store the blob contents in the blobstore.
    self._blob_storage.StoreBlob(blob_key, blob_file)

    # Store the blob metadata in the datastore as a __BlobInfo__ entity.
    blob_entity = datastore.Entity('__BlobInfo__', name=str(blob_key),
                                   namespace='')
    blob_entity['content_type'] = content_type
    blob_entity['creation'] = creation
    blob_entity['filename'] = filename
    blob_entity['md5_hash'] = md5_hash.hexdigest()
    blob_entity['size'] = blob_file.tell()

    datastore.Put(blob_entity)
    return blob_entity
Convert iface string like 'any', 'eth', 'eth0' to iptables iface naming like *, eth+, eth0.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/blob_upload.py/Application.store_blob--crossover with--dataset/ETHPy150Open securitykiss-com/rfw/rfw/cmdparse.py/convert_iface