def getZones(): viewLog(table='zone') return zone.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getProbability(uuid): viewLog(table='probability', uuid=unicode(uuid)) return probability.query.filter_by( uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getValueChainArea(uuid): viewLog(table='valueChainArea', uuid=unicode(uuid)) return valueChainArea.query.filter_by( uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getStatus(uuid): viewLog(table='status', uuid=unicode(uuid)) return status.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getCausingFactors(): viewLog(table='causingFactor') return causingFactor.query.filter_by( tenant_uuid=session['tenant_uuid']).all()
def getRegion(uuid): viewLog(table='region', uuid=unicode(uuid)) return region.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getEventType(uuid): viewLog(table='eventType', uuid=unicode(uuid)) return eventType.query.filter_by( uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getUser(uuid): viewLog(table='user', uuid=unicode(uuid)) return user.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getImpact(uuid): viewLog(table='impact', uuid=unicode(uuid)) return impact.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getTreatmentTypes(): viewLog(table='treatmentType') return treatmentType.query.filter_by( tenant_uuid=session['tenant_uuid']).all()
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()
def getProcessAreas(): viewLog(table='processArea') return processArea.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getZone(uuid): viewLog(table='zone', uuid=unicode(uuid)) return zone.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getRatings(): viewLog(table='rating') return rating.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getImpacts(): viewLog(table='impact') return impact.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getRegions(): viewLog(table='region') return region.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getDeliveryPoints(): viewLog(table='deliveryPoint') return deliveryPoint.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getRiskTypes(): viewLog(table='riskType') return riskType.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getDeliveryPoint(uuid): viewLog(table='deliveryPoint', uuid=unicode(uuid)) return deliveryPoint.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getsEventType(): viewLog(table='eventType') return eventType.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getRiskArea(uuid): viewLog(table='riskArea', uuid=unicode(uuid)) return riskArea.query.filter_by( uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getStatuses(): viewLog(table='status') return status.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getGroups(): viewLog(table='group') return group.query.filter_by(tenant_uuid=session['tenant_uuid']).all()
def getCausingFactor(uuid): viewLog(table='causingFactor', uuid=unicode(uuid)) return causingFactor.query.filter_by( uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getGroup(uuid): viewLog(table='group', uuid=unicode(uuid)) return group.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getProbabilities(): viewLog(table='probability') return probability.query.filter_by( tenant_uuid=session['tenant_uuid']).all()
def getRating(uuid): viewLog(table='rating', uuid=unicode(uuid)) return rating.query.filter_by(uuid=uuid, tenant_uuid=session['tenant_uuid']).first()
def getValueChainAreas(): viewLog(table='valueChainArea') return valueChainArea.query.filter_by( tenant_uuid=session['tenant_uuid']).all()
def getTreatment(uuid): viewLog(table='treatment', uuid=unicode(uuid)) return treatment.query.filter_by( uuid=uuid, tenant_uuid=session['tenant_uuid']).first()