示例#1
0
def board():
    auth = session.get("auth", {})
    user = auth.get("user", None)
    if user:
        user_id = user.id
    else:
        user_id = None
    person = Person()
    person.board(request.args(0) or user_id or redirect(login_url))
    return person.render('app/person/board')
示例#2
0
def board():
    auth = session.get("auth", {})
    user = auth.get("user", None)
    if user:
        user_id = user.id
    else:
        user_id = None
    person = Person()
    person.context.leftlogo_enabled = True
    person.board(request.args(0) or user_id or redirect(login_url), request.vars.postid)
    return person.render()
示例#3
0
def show():
    auth = session.get("auth", {})
    user = None
    if auth:
        user = auth.get("user", None)
    if user:
        user_id = user.id
    else:
        user_id = None
    person = Person()
    person.show(request.args(0) or user_id or redirect(login_url))
    return person.render()
示例#4
0
def show():
    auth = session.get("auth", {})
    user = None
    if auth:
        user = auth.get("user", None)
    if user:
        user_id = user.id
    else:
        user_id = None
    person = Person()
    person.show(request.args(0) or user_id or redirect(login_url))
    return person.render()
示例#5
0
def board():
    auth = session.get("auth", {})
    user = None
    if auth:
        user = auth.get("user", None)
    if user:
        user_id = user.id
    else:
        user_id = None
    person = Person()
    person.context.leftlogo_enabled = True
    person.board(
        request.args(0) or user_id or redirect(login_url), request.vars.postid)
    return person.render()
示例#6
0
def show():
    person = Person()
    person.show(request.args(0) or session.auth.user.id)
    return person.render('app/person/show')
示例#7
0
def account():
    person = Person("account")
    person.context.left_sidebar_enabled = True if 'profile' in request.args else False
    person.context.leftlogo_enabled = True
    return person.render('app/person/account')
示例#8
0
def facebook():
    session.state = 'facebook'
    person = Person("facebook")
    return person.render()
示例#9
0
def search():
    person = Person()
    person.context.left_sidebar_enabled = True
    person.search(request.vars.get('q'))
    return person.render('app/person/search')
示例#10
0
def privatetimeline():
    person = Person('privatetimeline')
    person.context.leftlogo_enabled = True
    return person.render("app/person/privatetimeline")
示例#11
0
def loginbare():
    person = Person("loginbare")
    return person.render('app/person/loginbare')
示例#12
0
def account():
    person = Person("account")
    return person.render('app/person/account')
示例#13
0
def delete_account():
    person = Person('delete_account')
    return person.render('app/person/account')
示例#14
0
def usertimeline():
    person = Person('usertimeline')
    person.context.leftlogo_enabled = True
    return person.render("app/person/usertimeline")
示例#15
0
def privatetimeline():
    person = Person('privatetimeline')
    person.context.leftlogo_enabled = True
    return person.render("app/person/privatetimeline")
示例#16
0
def delete_account():
    person = Person('delete_account')
    return person.render('app/person/account')
示例#17
0
def usertimeline():
    person = Person('usertimeline')
    person.context.leftlogo_enabled = True
    return person.render("app/person/usertimeline")
示例#18
0
def usertimeline():
    person = Person('usertimeline')
    return person.render("app/person/usertimeline")
示例#19
0
def google():
    if 'state' in request.vars and request.vars.state == 'google':
        session.state = request.vars.state
    person = Person("google")
    return person.render()
示例#20
0
def board():
    person = Person()
    person.board(request.args(0) or session.auth.user.id)
    return person.render('app/person/board')
示例#21
0
def loginbare():
    person = Person("loginbare")
    return person.render('app/person/loginbare')
示例#22
0
def facebook():
    person = Person("facebook")
    return person.render()
示例#23
0
def following():
    person = Person()
    person.following(request.args(0))
    return person.render()
示例#24
0
def facebook():
    session.state = 'facebook'
    person = Person("facebook")
    return person.render()
示例#25
0
def google():
    if 'state' in request.vars and request.vars.state == 'google':
        session.state = request.vars.state
    person = Person("google")
    return person.render()
示例#26
0
def publictimeline():
    person = Person('publictimeline')
    return person.render("app/person/publictimeline")
示例#27
0
def publictimeline():
    person = Person('publictimeline')
    return person.render("app/person/publictimeline")
示例#28
0
def privatetimeline():
    person = Person('privatetimeline')
    return person.render("app/person/privatetimeline")
示例#29
0
def privatetimeline():
    person = Person('privatetimeline')
    return person.render("app/person/privatetimeline")
示例#30
0
def contacts():
    person = Person()
    person.contacts(request.args(0))
    person.context.left_sidebar_enabled = True
    return person.render('app/person/contacts')
示例#31
0
def following():
    person = Person()
    person.following(request.args(0))
    return person.render()
示例#32
0
def usertimeline():
    person = Person('usertimeline')
    return person.render("app/person/usertimeline")
示例#33
0
def contacts():
    person = Person()
    person.contacts(request.args(0))
    person.context.left_sidebar_enabled = True
    return person.render('app/person/contacts')
示例#34
0
def account():
    person = Person("account")
    person.context.left_sidebar_enabled = True if 'profile' in request.args else False
    return person.render('app/person/account')
示例#35
0
def search():
    person = Person()
    person.context.left_sidebar_enabled = True
    person.search(request.vars.get('q'))
    return person.render('app/person/search')