def load_login(): try: state_dao = StateDAO() state_vo_list = state_dao.view_state() return render_template('user/login.html', state_vo_list=state_vo_list) except Exception as ex: print("load_login route exception occured>>>>>>>>>>", ex)
def admin_edit_area(): try: if admin_login_session() == 'admin': area_vo = AreaVO() area_dao = AreaDAO() state_dao = StateDAO() state_vo = StateVO() city_vo = CityVO() city_dao = CityDAO() area_vo.area_id = request.args.get('areaId') city_vo.city_state_id = request.args.get('stateId') area_vo_list = area_dao.edit_area(area_vo) state_vo_list = state_dao.view_state() city_vo_list = city_dao.view_ajax_area_city(city_vo) return render_template('admin/editArea.html', state_vo_list=state_vo_list, area_vo_list=area_vo_list, city_vo_list=city_vo_list) else: return redirect(url_for('admin_logout_session')) except Exception as ex: print("in admin_edit_area route exception occured>>>>>>>>>>", ex)
def admin_load_area(): try: if admin_login_session() == 'admin': state_dao = StateDAO() state_vo_list = state_dao.view_state() return render_template('admin/addArea.html', state_vo_list=state_vo_list) else: return redirect(url_for('admin_logout_session')) except Exception as ex: print('admin_load_area route exception occured>>>>>>>>>>', ex)
def admin_edit_city(): try: if admin_login_session() == 'admin': city_vo = CityVO() city_dao = CityDAO() state_dao = StateDAO() city_vo.city_id = request.args.get('cityId') city_vo_list = city_dao.edit_city(city_vo) state_vo_list = state_dao.view_state() return render_template('admin/editCity.html', state_vo_list=state_vo_list, city_vo_list=city_vo_list) else: return redirect(url_for('admin_logout_session')) except Exception as ex: print("in admin_edit_city route exception occured>>>>>>>>>>", ex)