示例#1
0
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)
示例#2
0
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)
示例#3
0
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)