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