def get_prices(id): conf = db.get(Conference, id) return { 'stud_cost': conf.stud_cost, 'prof_cost': conf.prof_cost, 'vend_cost': conf.vend_cost, }
def register(id, member,data): conf = db.get(Conference, id) mc = MemberConferences(data); mc.conference = conf mc.member = member mc.days = data['days'] print mc db.session.add(mc) db.session.commit() return conf
def get(inst_id): return db.get(Institution, inst_id)
def get_by_id(id): conference = db.get(Conference, id) if not conference: conference = get_next() return conference
def get(data): return db.get(Address, data['id'])