Skip to main content

Interfaces and behaviors for a family of Plone/Dexterity datatypes

Project description

visaplan.plone.behaviors

Interfaces and behaviors for a family of datatypes, based on zope.schema and Dexterity.

Features

Interfaces / behaviors

IHeightAndWidth

Provides the integer fields height and width

ICaptionAndLegend

Provides the text fields caption and legend (e.g. for image types)

IExcludeFromSearch

Provides a boolean field excludeFromSearch, aimed for selective exclusion of objects from standard catalog searches

IHierarchicalBuzzword

This is quite incomplete; the provided ASCIILine field code is aimed for the implementation of a hierarchical buzzword index. The vocabulary is still to be implemented; the factory of this behavior will likely be (re-) implemented in another package.

Examples

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

Documentation

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

Installation

This package won’t normally be installed on its own. Add it to the requirements of your package in which you intend to use one or more of its behaviors (in setup.py):

setup(...
    install_requires=[
        'setuptools',
        ...
        'visaplan.plone.behaviors',
        ],
    ...)

and add the behaviors you need to the list in the FTI file of your Dexterity-based type.

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.0.2.post2 (2021-02-12)

Packaging bugfix:

  • make --long-description work for PyPI

  • corrected project urls

[tobiasherp]

1.0.2 (2019-05-20)

  • New behavior IPreviewImage (requires plone.namedfile)

    • with (rudimentary, for now) getThumbnailPath method

  • Translations

[tobiasherp]

1.0.1 (2018-10-17)

  • Bugfix: marker interfaces explicitly declared [tobiasherp]

1.0 (2018-10-16)

  • 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.behaviors-1.0.2.post2.tar.gz (21.5 kB view details)

Uploaded Source

File details

Details for the file visaplan.plone.behaviors-1.0.2.post2.tar.gz.

File metadata

  • Download URL: visaplan.plone.behaviors-1.0.2.post2.tar.gz
  • Upload date:
  • Size: 21.5 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.behaviors-1.0.2.post2.tar.gz
Algorithm Hash digest
SHA256 ec360e9d24223044a04cf0abb3e5314238d423d56a19a43ea01657decf760386
MD5 f6749dddee0e8dc47e713077c93ebc5d
BLAKE2b-256 9dc5cfac507ffe3e4790fe9b6b74f7a1ee5dee2b60a5394aa0ebb7aac8f3ef19

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