Utilities for Kotti
Project description
kotti_toolkit
**********
This is a toolkit library for Kotti. It adds toolkits for the following components:
- Groups and Users
- Pyramid View Renderers
- Security
- Python list function
- Kotti Content types.
|pypi|_
|downloads_month|_
|license|_
|build_status_stable|_
.. |pypi| image:: https://img.shields.io/pypi/v/kotti_toolkit.svg?style=flat-square
.. _pypi: https://pypi.python.org/pypi/kotti_toolkit/
.. |downloads_month| image:: https://img.shields.io/pypi/dm/kotti_toolkit.svg?style=flat-square
.. _downloads_month: https://pypi.python.org/pypi/kotti_toolkit/
.. |license| image:: https://img.shields.io/pypi/l/kotti_toolkit.svg?style=flat-square
.. _license: http://www.repoze.org/LICENSE.txt
.. |build_status_stable| image:: https://img.shields.io/travis/Collective-Kotti/kotti_toolkit/production.svg?style=flat-square
.. _build_status_stable: http://travis-ci.org/Collective-Kotti/kotti_toolkit
`Find out more about Kotti`_
Development happens at https://github.com/Collective-Kotti/kotti_toolkit
.. _Find out more about Kotti: http://pypi.python.org/pypi/Kotti
Setup
=====
To enable the extension in your Kotti site, activate the configurator::
kotti.configurators =
kotti_toolkit.kotti_configure
Database upgrade
================
If you are upgrading from a previous version you might have to migrate your
database. The migration is performed with `alembic`_ and Kotti's console script
``kotti-migrate``. To migrate, run
``kotti-migrate upgrade --scripts=kotti_toolkit:alembic``.
For integration of alembic in your environment please refer to the
`alembic documentation`_. If you have problems with the upgrade,
please create a new issue in the `tracker`_.
Development
===========
|build_status_master|_
.. |build_status_master| image:: https://img.shields.io/travis/Collective-Kotti/kotti_toolkit/master.svg?style=flat-square
.. _build_status_master: http://travis-ci.org/Collective-Kotti/kotti_toolkit
Contributions to kotti_toolkit are highly welcome.
Just clone its `Github repository`_ and submit your contributions as pull requests.
.. _alembic: http://pypi.python.org/pypi/alembic
.. _alembic documentation: http://alembic.readthedocs.org/en/latest/index.html
.. _tracker: https://github.com/Collective-Kotti/kotti_toolkit/issues
.. _Github repository: https://github.com/Collective-Kotti/kotti_toolkit
History
=======
1.0.0
----------------
- Add the following users and groups functions found in `kotti_toolkit.security`:
- search for groups by name using the `find_group` function
- search for groups and users by email domain name with the `find_groups_by_email_domain` and `find_users_by_email_domain` functions.
- Easily create groups and users with the `create_group` and `create_user` functions.
- Add a `csv` renderer for **CSV** or excel output, e.g::
@view_config(name="export-users-status", permission="admin", renderer="csv")
def export_users(self):
req_status = self.request.params.get("status", "all")
- Create package with ``pcreate -s kotti kotti_toolkit``.
[b4oshany]
**********
This is a toolkit library for Kotti. It adds toolkits for the following components:
- Groups and Users
- Pyramid View Renderers
- Security
- Python list function
- Kotti Content types.
|pypi|_
|downloads_month|_
|license|_
|build_status_stable|_
.. |pypi| image:: https://img.shields.io/pypi/v/kotti_toolkit.svg?style=flat-square
.. _pypi: https://pypi.python.org/pypi/kotti_toolkit/
.. |downloads_month| image:: https://img.shields.io/pypi/dm/kotti_toolkit.svg?style=flat-square
.. _downloads_month: https://pypi.python.org/pypi/kotti_toolkit/
.. |license| image:: https://img.shields.io/pypi/l/kotti_toolkit.svg?style=flat-square
.. _license: http://www.repoze.org/LICENSE.txt
.. |build_status_stable| image:: https://img.shields.io/travis/Collective-Kotti/kotti_toolkit/production.svg?style=flat-square
.. _build_status_stable: http://travis-ci.org/Collective-Kotti/kotti_toolkit
`Find out more about Kotti`_
Development happens at https://github.com/Collective-Kotti/kotti_toolkit
.. _Find out more about Kotti: http://pypi.python.org/pypi/Kotti
Setup
=====
To enable the extension in your Kotti site, activate the configurator::
kotti.configurators =
kotti_toolkit.kotti_configure
Database upgrade
================
If you are upgrading from a previous version you might have to migrate your
database. The migration is performed with `alembic`_ and Kotti's console script
``kotti-migrate``. To migrate, run
``kotti-migrate upgrade --scripts=kotti_toolkit:alembic``.
For integration of alembic in your environment please refer to the
`alembic documentation`_. If you have problems with the upgrade,
please create a new issue in the `tracker`_.
Development
===========
|build_status_master|_
.. |build_status_master| image:: https://img.shields.io/travis/Collective-Kotti/kotti_toolkit/master.svg?style=flat-square
.. _build_status_master: http://travis-ci.org/Collective-Kotti/kotti_toolkit
Contributions to kotti_toolkit are highly welcome.
Just clone its `Github repository`_ and submit your contributions as pull requests.
.. _alembic: http://pypi.python.org/pypi/alembic
.. _alembic documentation: http://alembic.readthedocs.org/en/latest/index.html
.. _tracker: https://github.com/Collective-Kotti/kotti_toolkit/issues
.. _Github repository: https://github.com/Collective-Kotti/kotti_toolkit
History
=======
1.0.0
----------------
- Add the following users and groups functions found in `kotti_toolkit.security`:
- search for groups by name using the `find_group` function
- search for groups and users by email domain name with the `find_groups_by_email_domain` and `find_users_by_email_domain` functions.
- Easily create groups and users with the `create_group` and `create_user` functions.
- Add a `csv` renderer for **CSV** or excel output, e.g::
@view_config(name="export-users-status", permission="admin", renderer="csv")
def export_users(self):
req_status = self.request.params.get("status", "all")
- Create package with ``pcreate -s kotti kotti_toolkit``.
[b4oshany]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kotti_toolkit-1.0.0.tar.gz
(10.9 kB
view details)
Built Distributions
kotti_toolkit-1.0.0-py2.7.egg
(16.9 kB
view details)
File details
Details for the file kotti_toolkit-1.0.0.tar.gz
.
File metadata
- Download URL: kotti_toolkit-1.0.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
327fada8fd33c43420c5512caf25b29862ab82082fc7f6cbdf4a8fbc243a49b7
|
|
MD5 |
147f002bb6ff7aa2c018394bae99d16a
|
|
BLAKE2b-256 |
bb6c6f5134630d11d1d671fae3deff487d5852afb991f28f53c010886a2c13f1
|
File details
Details for the file kotti_toolkit-1.0.0-py2.7.egg
.
File metadata
- Download URL: kotti_toolkit-1.0.0-py2.7.egg
- Upload date:
- Size: 16.9 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e78bb3b9bc808a3248f3054ae1400694444f415317a51fe341c9674897927927
|
|
MD5 |
e23953859782a5757646dad31e317449
|
|
BLAKE2b-256 |
fe1a25bfd6fcf9db628f3aea11f4348c7fc3962ccfedeffdf5778178a4205b7b
|
File details
Details for the file kotti_toolkit-1.0.0-py2-none-any.whl
.
File metadata
- Download URL: kotti_toolkit-1.0.0-py2-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1a78d23335088c16ba17ab972fcd002b9c2603a14952686165d0f7405662c474
|
|
MD5 |
b05076029f7a29ecff390fc7aa5c8fdb
|
|
BLAKE2b-256 |
535b523f51a622bd74e68f1ea9d6cb9e5e014ee849483e884dec9625f6674607
|