Beispiel #1
0
def delete_bsfilter_destination(user):
    func_keys = dao.find_bsfilter_destinations_for_user(user.id)
    for func_key in func_keys:
        template_dao.remove_func_key_from_templates(func_key)
        dao.delete(func_key)
        notifier.deleted(func_key)
Beispiel #2
0
def delete_user_destination(user):
    func_key = dao.find_user_destination(user.id)
    if func_key:
        template_dao.remove_func_key_from_templates(func_key)
        dao.delete(func_key)
        notifier.deleted(func_key)