Skip to main content

Configurable internal number plone behavior

Project description

https://github.com/IMIO/collective.behavior.internalnumber/actions/workflows/main.yml/badge.svg?branch=master https://coveralls.io/repos/github/IMIO/collective.behavior.internalnumber/badge.svg PyPI badge

collective.behavior.internalnumber

This product adds a plone behavior for dexterity content. The behavior adds a text field containing an internal number.

Features

  • Optional uniqueness validation

  • Optional default value

  • Inclusion in searchable text

  • Global or type by type configuration

  • A configuration page can manage globally or type by type:

    • a uniqueness option

    • an incremented number

    • a default value tal expression

Usage

In the configuration panel, go to dexterity types. Click on the type you want extend with the internal number field. Go to the behavior tab. Select “Internal number field” behavior.

If you want the internal number be searched in searchable text, you can also select the “Dynamic SearchableText indexer behavior”

Translations

This product has been translated into

  • French (thanks the author)

Installation

Install collective.behavior.internalnumber by adding it to your buildout:

[buildout]

...

eggs =
    collective.behavior.internalnumber

and then running bin/buildout

Contribute

License

The project is licensed under the GPLv2.

Contributors

Changelog

0.2 (2023-05-31)

  • Made compliant with Plone 4.3, 5.2 and 6.0 [sgeulette]

  • Ordered imports & improved docstring [sgeulette]

  • Factorized increment/decrement functionnality in settings.increment_nb_for, settings.decrement_nb_for and settings.decrement_if_last_nb functions. Added helper function settings.set_settings. [gbastien]

  • Fixed ConnectionStateError while setting registry[TYPE_CONFIG] in tests and profile is applied several times. [gbastien]

0.1 (2017-05-31)

  • Initial release. [sgeulette]

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

collective.behavior.internalnumber-0.2.tar.gz (25.0 kB view details)

Uploaded Source

File details

Details for the file collective.behavior.internalnumber-0.2.tar.gz.

File metadata

  • Download URL: collective.behavior.internalnumber-0.2.tar.gz
  • Upload date:
  • Size: 25.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/2.7.18

File hashes

Hashes for collective.behavior.internalnumber-0.2.tar.gz
Algorithm Hash digest
SHA256 7e5b4e66eba62d4c8407b2fe26278aaf6c58f8747bfdc431ef3657a3f92cc01b
MD5 235ffe2498777338c2a9043d46792a42
BLAKE2b-256 d8710d2cbb1e054de90a8f4e09adfa89cf6d858436c7f1630040344685da7655

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