def userProfile(): if session['loginRole'] != 'user': return redirect(url_for('login')) loginDAO = LoginDAO() loginVO = LoginVO() loginVO.loginId = session['loginId'] loginDict = loginDAO.searchLoginDetailsById(loginVO) print "loginDict : ", loginDict return render_template('user/user-profile.html', loginDict=loginDict)
def userFavouriteProperties(): if session['loginRole'] != 'user': return redirect(url_for('login')) loginDAO = LoginDAO() loginVO = LoginVO() loginVO.loginId = session['loginId'] loginDict = loginDAO.searchLoginDetailsById(loginVO) return render_template('user/favourite-properties.html', loginDict=loginDict)
def userProperties(): if session['loginRole'] != 'user': return redirect(url_for('login')) loginDAO = LoginDAO() loginVO = LoginVO() propertyBasicDetailsDAO = PropertyBasicDetailsDAO() propertyBasicDetailsVO = PropertyBasicDetailsVO() loginVO.loginId = propertyBasicDetailsVO.property_LoginId = session[ 'loginId'] loginDict = loginDAO.searchLoginDetailsById(loginVO) propertyDict = propertyBasicDetailsDAO.serachPropertyDetailsByLoginId( propertyBasicDetailsVO) return render_template('user/my-properties.html', loginDict=loginDict, propertyDict=propertyDict)