Esempio n. 1
0
def getZones():
    viewLog(table='zone')
    return zone.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 2
0
def getProbability(uuid):
    viewLog(table='probability', uuid=unicode(uuid))
    return probability.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 3
0
def getValueChainArea(uuid):
    viewLog(table='valueChainArea', uuid=unicode(uuid))
    return valueChainArea.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 4
0
def getStatus(uuid):
    viewLog(table='status', uuid=unicode(uuid))
    return status.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 5
0
def getCausingFactors():
    viewLog(table='causingFactor')
    return causingFactor.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
Esempio n. 6
0
def getRegion(uuid):
    viewLog(table='region', uuid=unicode(uuid))
    return region.query.filter_by(uuid=uuid,
                                  tenant_uuid=session['tenant_uuid']).first()
Esempio n. 7
0
def getEventType(uuid):
    viewLog(table='eventType', uuid=unicode(uuid))
    return eventType.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 8
0
def getUser(uuid):
    viewLog(table='user', uuid=unicode(uuid))
    return user.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 9
0
def getImpact(uuid):
    viewLog(table='impact', uuid=unicode(uuid))
    return impact.query.filter_by(uuid=uuid,
                                  tenant_uuid=session['tenant_uuid']).first()
Esempio n. 10
0
def getTreatmentTypes():
    viewLog(table='treatmentType')
    return treatmentType.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
Esempio n. 11
0
def getUsers():
    viewLog(table='user')
    return user.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getValueChainStepTypes():
    viewLog(table='valueChainStepType')
    return valueChainStepType.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
Esempio n. 13
0
def getProcessAreas():
    viewLog(table='processArea')
    return processArea.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 14
0
def getZone(uuid):
    viewLog(table='zone', uuid=unicode(uuid))
    return zone.query.filter_by(uuid=uuid,
                                tenant_uuid=session['tenant_uuid']).first()
Esempio n. 15
0
def getRatings():
    viewLog(table='rating')
    return rating.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 16
0
def getImpacts():
    viewLog(table='impact')
    return impact.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 17
0
def getRegions():
    viewLog(table='region')
    return region.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 18
0
def getDeliveryPoints():
    viewLog(table='deliveryPoint')
    return deliveryPoint.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 19
0
def getRiskTypes():
    viewLog(table='riskType')
    return riskType.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 20
0
def getDeliveryPoint(uuid):
    viewLog(table='deliveryPoint', uuid=unicode(uuid))
    return deliveryPoint.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 21
0
def getsEventType():
    viewLog(table='eventType')
    return eventType.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 22
0
def getRiskArea(uuid):
    viewLog(table='riskArea', uuid=unicode(uuid))
    return riskArea.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 23
0
def getStatuses():
    viewLog(table='status')
    return status.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 24
0
def getGroups():
    viewLog(table='group')
    return group.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
Esempio n. 25
0
def getCausingFactor(uuid):
    viewLog(table='causingFactor', uuid=unicode(uuid))
    return causingFactor.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 26
0
def getGroup(uuid):
    viewLog(table='group', uuid=unicode(uuid))
    return group.query.filter_by(uuid=uuid,
                                 tenant_uuid=session['tenant_uuid']).first()
Esempio n. 27
0
def getProbabilities():
    viewLog(table='probability')
    return probability.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
Esempio n. 28
0
def getRating(uuid):
    viewLog(table='rating', uuid=unicode(uuid))
    return rating.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
Esempio n. 29
0
def getValueChainAreas():
    viewLog(table='valueChainArea')
    return valueChainArea.query.filter_by(
        tenant_uuid=session['tenant_uuid']).all()
Esempio n. 30
0
def getTreatment(uuid):
    viewLog(table='treatment', uuid=unicode(uuid))
    return treatment.query.filter_by(
        uuid=uuid, tenant_uuid=session['tenant_uuid']).first()