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


Python article.Article类代码示例

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

示例2: unfavorite

def unfavorite():
    article = Article('unfavorite')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例3: unsubscribe

def unsubscribe():
    article = Article('unsubscribe')
    if not article.context.error:
        return article.action_links()
    else:
        return article.context.error
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:6,代码来源:article.py

示例4: search

def search():
    article = Article('search')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/search")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:4,代码来源:article.py

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

示例6: delete

def delete():
    article = Article('delete')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/delete")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:4,代码来源:article.py

示例7: list

def list():
    article = Article('list')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/list")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:4,代码来源:article.py

示例8: new

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,代码行数:4,代码来源:article.py

示例9: tagcloud

def tagcloud():
    article = Article('tagcloud')
    return article.render("app/article/tagcloud")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:3,代码来源:article.py

示例10: tag

def tag():
    article = Article('tag')
    return article.render("app/article/tag")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:3,代码来源:article.py

示例11: category

def category():
    article = Article('category')
    return article.render("app/article/category")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:3,代码来源:article.py

示例12: isnotanswer

def isnotanswer():
    article = Article('isnotanswer')
    return article.render()
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:3,代码来源:article.py

示例13: edit

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,代码行数:3,代码来源:article.py

示例14: showcomment

def showcomment():
    article = Article('showcomment')
    article.context.left_sidebar_enabled = True
    return article.render("app/article/showcomment")
开发者ID:amon-ra,项目名称:web2py-for-fluxflex,代码行数:4,代码来源:article.py

示例15: search

def search():
    article = Article('search')
    return article.render("app/article/search")
开发者ID:goldenboy,项目名称:Movuca,代码行数:3,代码来源:article.py


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