コード例 #1
0
ファイル: logger.py プロジェクト: ORC-1/GoldHosp
def log(type, description, user):
    action = Action(
        type=type,
        timePerformed=datetime.now(),
        description=description,
        user=user,
    )
    action.save()
コード例 #2
0
ファイル: logger.py プロジェクト: ldurans/MedicalWebApp
def log(type, description, account):
    action = Action(
        type=type,
        timePerformed=datetime.now(),
        description=description,
        account=account,
    )
    action.save()
コード例 #3
0
ファイル: app_filters.py プロジェクト: ldurans/MedicalWebApp
def getActivityAction(key):
    """
    :param key: The action number
    :return: The string representation of the name for action
    """
    return Action.to_name(key)
コード例 #4
0
ファイル: app_filters.py プロジェクト: ldurans/MedicalWebApp
def getActivityAction(key):
    """
    :param key: The action number
    :return: The string representation of the name for action
    """
    return Action.to_name(key)