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