Exemplo n.º 1
0
def edit():
    article = Article('edit')
    return article.render("app/article/edit/%s" %
                          article.context.article.content_type_id.viewname)
Exemplo n.º 2
0
def category():
    article = Article('category')
    return article.render("app/article/category")
Exemplo n.º 3
0
def unsubscribe():
    article = Article('unsubscribe')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemplo n.º 4
0
def editcomment():
    article = Article('editcomment')
    return ''
Exemplo n.º 5
0
def list():
    article = Article('list')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/list")
Exemplo n.º 6
0
def show():
    article = Article('show')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/show/%s" % article.context.article.content_type_id.viewname)
Exemplo n.º 7
0
def tagcloud():
    article = Article('tagcloud')
    return article.render("app/article/tagcloud")
Exemplo n.º 8
0
def unsubscribe():
    article = Article('unsubscribe')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemplo n.º 9
0
def removereply():
    article = Article('removereply')
    return ''
Exemplo n.º 10
0
def votecomment():
    article = Article('vote_comment')
    return article.context.voted
Exemplo n.º 11
0
def addreply():
    article = Article("addreply")
    return article.context.replies
Exemplo n.º 12
0
def isnotanswer():
    article = Article('isnotanswer')
    return article.render()
Exemplo n.º 13
0
def showcomment():
    article = Article('showcomment')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/showcomment")
Exemplo n.º 14
0
def list():
    article = Article('list')
    return article.render("app/article/list")
Exemplo n.º 15
0
def delete():
    article = Article('delete')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/delete")
Exemplo n.º 16
0
def show():
    article = Article('show')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/show/%s" %
                          article.context.article.content_type_id.viewname)
Exemplo n.º 17
0
def list():
    article = Article('list')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/list")
Exemplo n.º 18
0
def search():
    article = Article('search')
    return article.render("app/article/search")
Exemplo n.º 19
0
def search():
    article = Article('search')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/search")
Exemplo n.º 20
0
def search():
    article = Article('search')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/search")
Exemplo n.º 21
0
def showcomment():
    article = Article('showcomment')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/showcomment")
Exemplo n.º 22
0
def unfavorite():
    article = Article('unfavorite')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemplo n.º 23
0
def edit():
    article = Article('edit')
    return article.render("app/article/edit/%s" % article.context.article.content_type_id.viewname)
Exemplo n.º 24
0
def undislike():
    article = Article('undislike')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemplo n.º 25
0
def isnotanswer():
    article = Article('isnotanswer')
    return article.render()
Exemplo n.º 26
0
def removecomment():
    article = Article('removecomment')
    return ''
Exemplo n.º 27
0
def tag():
    article = Article('tag')
    return article.render("app/article/tag")
Exemplo n.º 28
0
def tag():
    article = Article('tag')
    return article.render("app/article/tag")
Exemplo n.º 29
0
def category():
    article = Article('category')
    return article.render("app/article/category")
Exemplo n.º 30
0
def new():
    article = Article('new')
    #article.context.right_sidebar_enabled = True
    return article.render("app/article/new/%s" % article.context.viewname)
Exemplo n.º 31
0
def new():
    article = Article('new')
    #article.context.right_sidebar_enabled = True
    return article.render("app/article/new/%s" % article.context.viewname)
Exemplo n.º 32
0
def search():
    article = Article('search')
    return article.render("app/article/search")
Exemplo n.º 33
0
def tagcloud():
    article = Article('tagcloud')
    return article.render("app/article/tagcloud")
Exemplo n.º 34
0
def unfavorite():
    article = Article('unfavorite')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemplo n.º 35
0
def delete():
    article = Article('delete')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/delete")
Exemplo n.º 36
0
def undislike():
    article = Article('undislike')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemplo n.º 37
0
def list():
    article = Article('list')
    return article.render("app/article/list")