Exemple #1
0
def edit():
    article = Article('edit')
    return article.render("app/article/edit/%s" %
                          article.context.article.content_type_id.viewname)
Exemple #2
0
def category():
    article = Article('category')
    return article.render("app/article/category")
def unsubscribe():
    article = Article('unsubscribe')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemple #4
0
def editcomment():
    article = Article('editcomment')
    return ''
def list():
    article = Article('list')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/list")
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)
Exemple #7
0
def tagcloud():
    article = Article('tagcloud')
    return article.render("app/article/tagcloud")
Exemple #8
0
def unsubscribe():
    article = Article('unsubscribe')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemple #9
0
def removereply():
    article = Article('removereply')
    return ''
Exemple #10
0
def votecomment():
    article = Article('vote_comment')
    return article.context.voted
Exemple #11
0
def addreply():
    article = Article("addreply")
    return article.context.replies
Exemple #12
0
def isnotanswer():
    article = Article('isnotanswer')
    return article.render()
Exemple #13
0
def showcomment():
    article = Article('showcomment')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/showcomment")
Exemple #14
0
def list():
    article = Article('list')
    return article.render("app/article/list")
Exemple #15
0
def delete():
    article = Article('delete')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/delete")
Exemple #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)
Exemple #17
0
def list():
    article = Article('list')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/list")
Exemple #18
0
def search():
    article = Article('search')
    return article.render("app/article/search")
Exemple #19
0
def search():
    article = Article('search')
    article.context.left_sidebar_enabled = True
    article.context.leftlogo_enabled = True
    return article.render("app/article/search")
def search():
    article = Article('search')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/search")
def showcomment():
    article = Article('showcomment')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/showcomment")
def unfavorite():
    article = Article('unfavorite')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
def edit():
    article = Article('edit')
    return article.render("app/article/edit/%s" % article.context.article.content_type_id.viewname)
def undislike():
    article = Article('undislike')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
def isnotanswer():
    article = Article('isnotanswer')
    return article.render()
Exemple #26
0
def removecomment():
    article = Article('removecomment')
    return ''
def tag():
    article = Article('tag')
    return article.render("app/article/tag")
Exemple #28
0
def tag():
    article = Article('tag')
    return article.render("app/article/tag")
def category():
    article = Article('category')
    return article.render("app/article/category")
Exemple #30
0
def new():
    article = Article('new')
    #article.context.right_sidebar_enabled = True
    return article.render("app/article/new/%s" % article.context.viewname)
def new():
    article = Article('new')
    #article.context.right_sidebar_enabled = True
    return article.render("app/article/new/%s" % article.context.viewname)
Exemple #32
0
def search():
    article = Article('search')
    return article.render("app/article/search")
def tagcloud():
    article = Article('tagcloud')
    return article.render("app/article/tagcloud")
Exemple #34
0
def unfavorite():
    article = Article('unfavorite')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
def delete():
    article = Article('delete')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/delete")
Exemple #36
0
def undislike():
    article = Article('undislike')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
Exemple #37
0
def list():
    article = Article('list')
    return article.render("app/article/list")