コード例 #1
0
def validationActionPointID(ap_id):
    if not ActionPointDao.getActionPointByID(ap_id):
        raise NotFoundException("Unable to find action point with given id")
    else:
        return True
コード例 #2
0
def getActionPointByID(ap_id):
    validationActionPointID(ap_id)
    return ActionPointDao.getActionPointByID(ap_id)