本文整理汇总了Python中handlers.article.Article类的典型用法代码示例。如果您正苦于以下问题:Python Article类的具体用法?Python Article怎么用?Python Article使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Article类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: undislike
def undislike():
article = Article('undislike')
if not article.context.error:
return article.action_links()
else:
return article.context.error
示例2: unfavorite
def unfavorite():
article = Article('unfavorite')
if not article.context.error:
return article.action_links()
else:
return article.context.error
示例3: unsubscribe
def unsubscribe():
article = Article('unsubscribe')
if not article.context.error:
return article.action_links()
else:
return article.context.error
示例4: search
def search():
article = Article('search')
article.context.left_sidebar_enabled = True
return article.render("app/article/search")
示例5: show
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)
示例6: delete
def delete():
article = Article('delete')
article.context.left_sidebar_enabled = True
return article.render("app/article/delete")
示例7: list
def list():
article = Article('list')
article.context.left_sidebar_enabled = True
return article.render("app/article/list")
示例8: new
def new():
article = Article('new')
#article.context.right_sidebar_enabled = True
return article.render("app/article/new/%s" % article.context.viewname)
示例9: tagcloud
def tagcloud():
article = Article('tagcloud')
return article.render("app/article/tagcloud")
示例10: tag
def tag():
article = Article('tag')
return article.render("app/article/tag")
示例11: category
def category():
article = Article('category')
return article.render("app/article/category")
示例12: isnotanswer
def isnotanswer():
article = Article('isnotanswer')
return article.render()
示例13: edit
def edit():
article = Article('edit')
return article.render("app/article/edit/%s" % article.context.article.content_type_id.viewname)
示例14: showcomment
def showcomment():
article = Article('showcomment')
article.context.left_sidebar_enabled = True
return article.render("app/article/showcomment")
示例15: search
def search():
article = Article('search')
return article.render("app/article/search")