コード例 #1
0
ファイル: test_data.py プロジェクト: markijbema/hovercraft
def cleanup(email):
    """Delete all the shitty presentations."""
    for j in storage.search_json(email):
        p = json.loads(j)
        if ('author' not in p or 'title' not in p or 'slides' not in p
                or not p['slides'] or not isinstance(p['slides'], list)):
            storage.delete(email, p['id'])
コード例 #2
0
ファイル: test_data.py プロジェクト: agonzalezro/hovercraft
def cleanup(email):
    """Delete all the shitty presentations."""
    for j in storage.search_json(email):
        p = json.loads(j)
        if ('author' not in p or 'title' not in p or 'slides' not in p
            or not p['slides'] or not isinstance(p['slides'], list)):
            storage.delete(email, p['id'])
コード例 #3
0
ファイル: server.py プロジェクト: markijbema/hovercraft
def handle_delete_presentation(presentation_id):
    storage.delete(session['email'], presentation_id)
    return make_response('', 204)