当前位置: 首页>>代码示例>>Python>>正文


Python Article.render方法代码示例

本文整理汇总了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")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例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)
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例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")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例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")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例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)
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例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")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:5,代码来源:article.py

示例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")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:5,代码来源:article.py

示例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")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:5,代码来源:article.py

示例9: isnotanswer

# 需要导入模块: from handlers.article import Article [as 别名]
# 或者: from handlers.article.Article import render [as 别名]
def isnotanswer():
    article = Article('isnotanswer')
    return article.render()
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:5,代码来源:article.py

示例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)
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:5,代码来源:article.py

示例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")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例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")
开发者ID:goldenboy,项目名称:Movuca,代码行数:5,代码来源:article.py

示例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")
开发者ID:goldenboy,项目名称:Movuca,代码行数:5,代码来源:article.py


注:本文中的handlers.article.Article.render方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。