Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sacrud/ps_tree
ps_tree is extension for pyramid_sacrud which displays a list of records as tree. This works fine with models from sqlalchemy_mptt.
https://github.com/sacrud/ps_tree
Last synced: 3 months ago
JSON representation
ps_tree is extension for pyramid_sacrud which displays a list of records as tree. This works fine with models from sqlalchemy_mptt.
- Host: GitHub
- URL: https://github.com/sacrud/ps_tree
- Owner: sacrud
- License: mit
- Created: 2015-06-15T11:43:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-10T07:39:25.000Z (over 9 years ago)
- Last Synced: 2024-07-06T05:08:36.240Z (4 months ago)
- Language: Python
- Homepage: http://ps-tree.rtfd.org
- Size: 426 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
- awesome-pyramid - ps_tree - extension for (Admin interface)
README
|Build Status| |Coverage Status| |PyPI|
ps_tree
=======`ps_tree` is extension for `pyramid_sacrud
`_ which displays a list of records
as tree. This works fine with models from `sqlalchemy_mptt
`_... image:: https://cdn.rawgit.com/ITCase/ps_tree/master/docs/source/_static/tree.png
:alt: treeLook how easy it is to use:
.. code-block:: python
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)
.. code-block:: python
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)For more docs see http://ps-tree.rtfd.org
Support and Development
=======================To report bugs, use the `issue tracker
`_We welcome any contribution: suggestions, ideas, commits with new futures,
bug fixes, refactoring, docs, tests, translations etcIf you have question, contact me [email protected] or IRC channel #sacrud
License
=======The project is licensed under the MIT license.
.. |Build Status| image:: https://travis-ci.org/ITCase/ps_tree.svg?branch=master
:target: https://travis-ci.org/ITCase/ps_tree
.. |Coverage Status| image:: https://coveralls.io/repos/ITCase/ps_tree/badge.png?branch=master
:target: https://coveralls.io/r/ITCase/ps_tree?branch=master
.. |PyPI| image:: http://img.shields.io/pypi/dm/ps_tree.svg
:target: https://pypi.python.org/pypi/ps_tree/