def viewCity(): if session['loginRole'] != 'admin': return render_template('admin/login.html') cityDAO = CityDAO() cityDict = cityDAO.searchCity() return render_template('admin/viewCity.html', cityDict=cityDict)
def loadPropertyAddress(): if session['loginRole']!= 'user': return redirect(url_for('login')) stateDAO = StateDAO() cityDAO = CityDAO() propertyBasicDetailsDAO = PropertyBasicDetailsDAO() stateDict = stateDAO.searchState() cityDict = cityDAO.searchCity() propertyDict = propertyBasicDetailsDAO.getMaxId() return render_template('user/propertyAddress.html',cityDict=cityDict,stateDict=stateDict,propertyDict=propertyDict)