def yo(**kwargs): q = db.session.query(Attr_yo, getattr(g.prod_models, "Yo")) \ .filter(Attr_yo.origin_id == getattr(g.prod_models, "Yo").origin_id) \ .filter(Attr_yo.year == getattr(g.prod_models, "Yo").year) return make_response( make_query(q, request.args, g.locale, getattr(g.prod_models, "Yo"), **kwargs))
def ydp(**kwargs): return make_response(make_query(getattr(g.prod_models, "Ydp"), \ request.args, g.locale, classification=g.prod_classification, \ output_depth=g.output_depth, **kwargs))
def yop_dest(**kwargs): return make_response(make_query(getattr(g.prod_models, "Yop"), \ request.args, g.locale, classification=g.prod_classification, **kwargs))
def yod(**kwargs): return make_response(make_query(getattr(g.prod_models, "Yod"), request.args, g.locale, **kwargs))
def yo(**kwargs): q = db.session.query(Attr_yo, getattr(g.prod_models, "Yo")) \ .filter(Attr_yo.origin_id == getattr(g.prod_models, "Yo").origin_id) \ .filter(Attr_yo.year == getattr(g.prod_models, "Yo").year) return make_response(make_query(q, request.args, g.locale, getattr(g.prod_models, "Yo"), **kwargs))
def sitc_yodp_dest(**kwargs): return make_response(make_query(Yodp, request.args, g.locale, **kwargs))
def sitc_yp(**kwargs): return make_response(make_query(Yp, request.args, g.locale, **kwargs))
def sitc_yo(**kwargs): q = db.session.query(Attr_yo, Yo) \ .filter(Attr_yo.origin_id == Yo.origin_id) \ .filter(Attr_yo.year == Yo.year) return make_response(make_query(q, request.args, g.locale, Yo, **kwargs))
def yod(**kwargs): return make_response( make_query(getattr(g.prod_models, "Yod"), request.args, g.locale, **kwargs))
def yp(**kwargs): return make_response(make_query(getattr(g.prod_models, "Yp"), \ request.args, g.locale, classification=g.prod_classification, \ output_depth=g.output_depth, **kwargs))
def yodp_dest(**kwargs): return make_response(make_query(getattr(g.prod_models, "Yodp"), \ request.args, g.locale, classification=g.prod_classification, **kwargs))
def hs_yodp(**kwargs): return make_response(make_query(Yodp, request.args, g.locale, **kwargs))
def hs_yodp_dest(**kwargs): return make_response(make_query(Yodp, request.args, g.locale, **kwargs))
def hs_yp(**kwargs): return make_response(make_query(Yp, request.args, g.locale, **kwargs))
def sitc_yodp(**kwargs): return make_response(make_query(Yodp, request.args, g.locale, **kwargs))