Skip to main content

A mini language for reuse of information

Project description

https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336:target:https://pycqa.github.io/isort/

visaplan.plone.infohubs

This product establishes a “mini language” for the calculation and re-use of information from Plone instances during the processing of a single request, e.g. when creating breadcrumbs; e.g., if the login state is important for the breadcrumb for /foo, that same state might be important for the /foo/bar breadcrumb as well.

It is part of the footing of the “Unitracc family” of Plone sites which are maintained by visaplan GmbH, Bochum, Germany; the mini-language was established during the development of the now factored-out package visaplan.plone.breadcrumbs.

The purpose of this package (for now) is not to provide new functionality but to factor out existing functionality from our former monolithic Zope product. Thus, it is more likely to lose 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).

Features

  • The info dictionary holds the collected information of interest during processing of the request.

  • The hub dictionary holds the tools which were used to get those information chunks.

    • For now, some of those tools are quite proprietary adapters or browsers, usually now factored out to the visaplan.plone.adapters and visaplan.plone.browsers packages, respectively.

      This is not ideal, and it will change; we’d rather depend directly on standard Plone tools and/or the plone.api instead.

Examples

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

Documentation

Full documentation for end users can be found in the “docs” folder.

Installation

Install visaplan.plone.infohubs by adding it to your buildout:

[buildout]

...

eggs =
    visaplan.plone.infohubs

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.2.0 (unreleased)

New Features:

  • info key my_translation: a proxy to get the appropriate language version for an object given by path or uid

Hard dependencies removed:

Package

Depending features

visaplan.plone.groups

  • info['group_title']

  • info['gid'] (group id)

  • info['managed_group_title']

  • info['is_member_of'](`group`)

visaplan.plone.tools

  • info['session']

  • info['gid'] (group id)

visaplan.plone.pdfexport

  • info['PDFCreator']

visaplan.plone.unitracctool

  • info['desktop_brain']

  • info['desktop_url']

  • info['bracket_default']

[tobiasherp]

1.1.0 (2020-07-15)

New Features:

  • info key my_translation: a proxy to get the appropriate language version for an object given by path or uid

[tobiasherp]

1.0.2 (2019-05-09)

  • convenience function context_tuple, e.g. for methods with optional hub and info arguments

  • Explicitly raise TypeErrors instead of using assertions (context_and_form_tuple, context_tuple)

  • New info keys counter and counters

[tobiasherp]

1.0.1 (2019-01-31)

  • info['my_uid'] uses plone.uuid.interfaces.IUUID directly [tobiasherp]

1.0 (2018-09-17)

  • 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.infohubs-1.2.0.dev2.tar.gz (26.4 kB view details)

Uploaded Source

File details

Details for the file visaplan.plone.infohubs-1.2.0.dev2.tar.gz.

File metadata

  • Download URL: visaplan.plone.infohubs-1.2.0.dev2.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.5

File hashes

Hashes for visaplan.plone.infohubs-1.2.0.dev2.tar.gz
Algorithm Hash digest
SHA256 98a95e41ca8d36533b030cdf1ff9d777479b968e13b654d148781c192deb9cb3
MD5 711b06e90f411484279f3e59fa4f11e3
BLAKE2b-256 71f8e9f067a7b82112867cff331e57dfeac30985c5ce0344dc15afd71183b016

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