'Load and save the given file.'

def save_asset(self, filename, asset_key, displayname, locked):

    with open('{}/static/{}'.format(DATA_DIR, filename), 'rb') as f:
        content = StaticContent(asset_key, displayname, mimetypes.guess_type(filename)[0], f.read(), locked=locked)
        self.contentstore.save(content)
