跳转到主要内容

JQuery树结构在pyramid_sacrud或其他任何地方。

项目描述

Build Status Coverage Status PyPI

ps_tree

ps_treepyramid_sacrud 的扩展,可以将记录列表显示为树形结构。它与来自 sqlalchemy_mptt 的模型兼容。

tree

看看使用有多简单

from pyramid_pages.models import BaseSacrudMpttPage

Base = declarative_base()
DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension()))

class PageTree(Base, BaseSacrudMpttPage):
    __tablename__ = 'pages'

    id = Column(Integer, primary_key=True)
config.include('ps_tree')
config.registry.settings['ps_tree.models'] = (PageTree, )
config.include('pyramid_sacrud', route_prefix='admin')
config.registry.settings['pyramid_sacrud.models'] = ('', PageTree)

有关更多文档,请参阅 http://ps-tree.rtfd.org

支持和开发

要报告错误,请使用 问题跟踪器

我们欢迎任何贡献:建议、想法、带有新功能的提交、错误修复、重构、文档、测试、翻译等。

如果您有任何问题,请联系我 sacrud@uralbash.ru 或IRC频道 #sacrud

许可证

该项目采用MIT许可证。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分发

ps_tree-0.0.1.post0.tar.gz (134.0 kB 查看哈希值)

上传时间 源代码

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面