Skip to main content

Utilities for Kotti

Project description

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

Find out more about Kotti

Development happens at https://github.com/Collective-Kotti/kotti_toolkit

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

Contributions to kotti_toolkit are highly welcome. Just clone its Github repository and submit your contributions as pull requests.

History

1.0.1 - 1.0.2

  • Use endswith instead of regex search when querying for principals with a particular email domain name.

  • Add a create-user bin script.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

kotti_toolkit-1.0.2-py2-none-any.whl (27.7 kB view details)

Uploaded Python 2

File details

Details for the file kotti_toolkit-1.0.2-py2-none-any.whl.

File metadata

  • Download URL: kotti_toolkit-1.0.2-py2-none-any.whl
  • Upload date:
  • Size: 27.7 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

Hashes for kotti_toolkit-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 284fc7a6665aa26788e1b270f154b15592ddc384f3e0bfe8183e19b1e2014302
MD5 7ac80bfba89411f8188e057541469057
BLAKE2b-256 159491f94661d99ed335105d5e271f56648e938019e54dff90166fbe923f6eb6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page