Esempio n. 1
0
def active_actions(user):
    actions = ACTION_DETAILS
    for detail in actions:
        detail['active'] = binded_account(user, kind=detail['kind'], require_password=detail['require_password'])
    return actions
Esempio n. 2
0
def active_triggers(user):
    triggers = TRIGGER_DETAILS
    for detail in triggers: 
        detail['active'] = binded_account(user, kind=detail['kind'], require_password=detail['require_password'])
    return triggers