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