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
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