Esempio n. 1
0
def log(type, description, user):
    action = Action(
        type=type,
        timePerformed=datetime.now(),
        description=description,
        user=user,
    )
    action.save()
Esempio n. 2
0
def log(type, description, account):
    action = Action(
        type=type,
        timePerformed=datetime.now(),
        description=description,
        account=account,
    )
    action.save()
Esempio n. 3
0
def getActivityAction(key):
    """
    :param key: The action number
    :return: The string representation of the name for action
    """
    return Action.to_name(key)
Esempio n. 4
0
def getActivityAction(key):
    """
    :param key: The action number
    :return: The string representation of the name for action
    """
    return Action.to_name(key)