Skip to main content

General tools for Plone sites

Project description

General tools modules for Plone.

We don’t claim ultimate Plone wisdom (yet); the main purpose of this package is to factor out functionality from a big monolithic product into packages.

Thus, the purpose of this package (for now) is not to provide new functionality; it is more likely to loose functionality during further development (as parts of it will be forked out into their own packages, or some functionality may even become obsolete because there are better alternatives in standard Plone components).

It is part of the footing of the “Unitracc family” of Plone sites which are maintained by visaplan GmbH, Bochum, Germany.

Some modules of this package still contain some resources (e.g. type names) which are specific to our “Unitracc family” of sites; this is likely to change in future releases.

Features

This add-on can be seen in action at the following sites:

Modules in version 1.1.1:

  • attools module

    several tools for Archetypes-based content

  • brains module

    currently one make_collector function, e.g. for address fields

  • cfg module

    Read “product” configuration, and detect development mode

  • context module

    Several tools for processing the request. Some need some modernization …

  • forms module

    Several tools for forms

  • functions module

    Some functions, e.g. is_uid_shaped

  • log module

    Automatically named loggers

  • mock module

    • a few small classes for use in doctests

    • the same module as visaplan.tools.mock

  • mock_cfg module

    A rudimentary mock module for cfg

  • search module

    A few functions to support creation of ZODB catalog search queries (quite proprietary, I’m afraid; might go away in future versions)

  • setup module (since v1.1)

    Functions for use in migration scripts

  • zcmlgen module (since v1.1.1)

    • Generates configure.zcml files, if - changes are detected, and - development mode is active, and - the source is in an development package.

Documentation

Sorry, we don’t have real user documentation yet.

Installation

Since visaplan.plone.tools is a package for Plone instances, it is not normally installed using pip; instead, install it by adding it to your buildout:

[buildout]

...

eggs =
    visaplan.plone.tools

and then running bin/buildout

Contribute

Support

If you are having issues, please let us know; please use the issue tracker mentioned above.

License

The project is licensed under the GPLv2.

Contributors

Changelog

1.1.3 (2019-01-29)

  • setup.make_renamer(): generated rename function improved: existing positional options default to None; instead of uid, o (object) or brain can be specified (by name).

  • setup.make_query_extractor(), generated extract_query function improved: don’t convert a Language string to a list if it’s value is all

  • zcmlgen module:

    • Bugfix for changes detection

    • If changes are found but disallowed (non-development setup), and if sys.stdout is connected to a terminal, start the debugger

    [tobiasherp]

1.1.2 (2018-11-21)

  • Corrections for the documentation

  • (currently) unused dependencies removed [tobiasherp]

1.1.1 (2018-09-27)

  • zcmlgen module added:

    • Generates configure.zcml files, if

      • changes are detected (buggy; see v1.1.3), and

      • development mode is active, and

      • the source is in a development package.

1.1 (2018-09-17)

  • attools module added:

    • a brown bag of tools for Archetypes

  • brains module added:

    • make_collector, e.g. for address fields

  • forms module added:

    • a brown bag of modules to support forms in a Zope/Plone system

  • mock module added:

    • a few small classes for use in doctests

    • the same module as visaplan.tools.mock

  • mock_cfg module added:

    • accompanies cfg, for testing only

  • search module added:

    • tools for creation of catalog queries

  • setup module added: functions for use in migration scripts

  • Module changes:

    • context module:

      • new function decorated_tool

    • functions module:

      • new function looksLikeAUID (for historical reasons)

1.0 (2018-07-11)

  • Initial release. [tobiasherp]

Project details


Download files

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

Source Distribution

visaplan.plone.tools-1.1.3.tar.gz (61.7 kB view hashes)

Uploaded Source

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