def edit(): article = Article('edit') return article.render("app/article/edit/%s" % article.context.article.content_type_id.viewname)
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
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)
def tagcloud(): article = Article('tagcloud') return article.render("app/article/tagcloud")
def removereply(): article = Article('removereply') return ''
def votecomment(): article = Article('vote_comment') return article.context.voted
def addreply(): article = Article("addreply") return article.context.replies
def isnotanswer(): article = Article('isnotanswer') return article.render()
def showcomment(): article = Article('showcomment') article.context.left_sidebar_enabled = True article.context.leftlogo_enabled = True return article.render("app/article/showcomment")
def list(): article = Article('list') return article.render("app/article/list")
def delete(): article = Article('delete') article.context.left_sidebar_enabled = True article.context.leftlogo_enabled = True return article.render("app/article/delete")
def list(): article = Article('list') article.context.left_sidebar_enabled = True article.context.leftlogo_enabled = True return article.render("app/article/list")
def search(): article = Article('search') return article.render("app/article/search")
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 undislike(): article = Article('undislike') if not article.context.error: return article.action_links() else: return article.context.error
def removecomment(): article = Article('removecomment') return ''
def tag(): article = Article('tag') return article.render("app/article/tag")
def new(): article = Article('new') #article.context.right_sidebar_enabled = True return article.render("app/article/new/%s" % article.context.viewname)
def delete(): article = Article('delete') article.context.left_sidebar_enabled = True return article.render("app/article/delete")