コード例 #1
0
def getZones():
    viewLog(table='zone')
    return zone.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #2
0
def getProbability(uuid):
    viewLog(table='probability', uuid=unicode(uuid))
    return probability.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #3
0
def getValueChainArea(uuid):
    viewLog(table='valueChainArea', uuid=unicode(uuid))
    return valueChainArea.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #4
0
ファイル: statusCrud.py プロジェクト: ThePoulsen/bootstrap
def getStatus(uuid):
    viewLog(table='status', uuid=unicode(uuid))
    return status.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #5
0
ファイル: crud.py プロジェクト: ThePoulsen/bootstrap
def getCausingFactors():
    viewLog(table='causingFactor')
    return causingFactor.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
コード例 #6
0
def getRegion(uuid):
    viewLog(table='region', uuid=unicode(uuid))
    return region.query.filter_by(uuid=uuid,
                                  tenant_uuid=session['tenant_uuid']).first()
コード例 #7
0
ファイル: eventTypeCrud.py プロジェクト: ThePoulsen/bootstrap
def getEventType(uuid):
    viewLog(table='eventType', uuid=unicode(uuid))
    return eventType.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #8
0
ファイル: userCrud.py プロジェクト: ThePoulsen/bootstrap
def getUser(uuid):
    viewLog(table='user', uuid=unicode(uuid))
    return user.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #9
0
def getImpact(uuid):
    viewLog(table='impact', uuid=unicode(uuid))
    return impact.query.filter_by(uuid=uuid,
                                  tenant_uuid=session['tenant_uuid']).first()
コード例 #10
0
def getTreatmentTypes():
    viewLog(table='treatmentType')
    return treatmentType.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
コード例 #11
0
ファイル: userCrud.py プロジェクト: ThePoulsen/bootstrap
def getUsers():
    viewLog(table='user')
    return user.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #12
0
def getValueChainStepTypes():
    viewLog(table='valueChainStepType')
    return valueChainStepType.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
コード例 #13
0
def getProcessAreas():
    viewLog(table='processArea')
    return processArea.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #14
0
def getZone(uuid):
    viewLog(table='zone', uuid=unicode(uuid))
    return zone.query.filter_by(uuid=uuid,
                                tenant_uuid=session['tenant_uuid']).first()
コード例 #15
0
ファイル: crud.py プロジェクト: ThePoulsen/bootstrap
def getRatings():
    viewLog(table='rating')
    return rating.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #16
0
def getImpacts():
    viewLog(table='impact')
    return impact.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #17
0
def getRegions():
    viewLog(table='region')
    return region.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #18
0
def getDeliveryPoints():
    viewLog(table='deliveryPoint')
    return deliveryPoint.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #19
0
def getRiskTypes():
    viewLog(table='riskType')
    return riskType.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #20
0
def getDeliveryPoint(uuid):
    viewLog(table='deliveryPoint', uuid=unicode(uuid))
    return deliveryPoint.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #21
0
ファイル: eventTypeCrud.py プロジェクト: ThePoulsen/bootstrap
def getsEventType():
    viewLog(table='eventType')
    return eventType.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #22
0
ファイル: riskAreaCrud.py プロジェクト: ThePoulsen/bootstrap
def getRiskArea(uuid):
    viewLog(table='riskArea', uuid=unicode(uuid))
    return riskArea.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #23
0
ファイル: statusCrud.py プロジェクト: ThePoulsen/bootstrap
def getStatuses():
    viewLog(table='status')
    return status.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #24
0
def getGroups():
    viewLog(table='group')
    return group.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
コード例 #25
0
ファイル: crud.py プロジェクト: ThePoulsen/bootstrap
def getCausingFactor(uuid):
    viewLog(table='causingFactor', uuid=unicode(uuid))
    return causingFactor.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #26
0
def getGroup(uuid):
    viewLog(table='group', uuid=unicode(uuid))
    return group.query.filter_by(uuid=uuid,
                                 tenant_uuid=session['tenant_uuid']).first()
コード例 #27
0
def getProbabilities():
    viewLog(table='probability')
    return probability.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
コード例 #28
0
ファイル: crud.py プロジェクト: ThePoulsen/bootstrap
def getRating(uuid):
    viewLog(table='rating', uuid=unicode(uuid))
    return rating.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
コード例 #29
0
def getValueChainAreas():
    viewLog(table='valueChainArea')
    return valueChainArea.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
コード例 #30
0
ファイル: crud.py プロジェクト: ThePoulsen/bootstrap
def getTreatment(uuid):
    viewLog(table='treatment', uuid=unicode(uuid))
    return treatment.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()