Skip to main content

add business mixins

Project description

Version status Build status Coverage Documentation Status gitter Python versions

AnyBlok

Add some mixins to help implementation of business models

Blok

Dependencies

Description

anyblok-mixins

Add some Mixins to help developpers :

  • IdColumn : add primary key id

  • UuidColumn : add primary key uuid

  • TrackModel : add create_date and edit_date

  • ForbidUpdate : Forbid all update on a Model

  • ForbidDelete : Forbid all delete on a Model

  • Readonly : Forbid all delete and update on a Model

  • ConditionalForbidUpdate : Need to overwrite the method check_if_forbid_update_condition_is_true

  • ConditionalForbidDelete : Need to overwrite the method check_if_forbid_delete_condition_is_true

  • ConditionalReadonly : Need to overwrite the method check_if_forbid_update_condition_is_true and check_if_forbid_delete_condition_is_true

  • BooleanForbidUpdate : add forbid_update column

  • BooleanForbidDelete : add forbid_delete column

  • BooleanReadonly : add readonly column

  • StateReadOnly : Need to overwrite the method check_if_forbid_update_condition_is_true and check_if_forbid_delete_condition_is_true

anyblok-workflow

anyblok-mixins

Add Workflow behaviour

AnyBlok / Pyramid is released under the terms of the Mozilla Public License.

See the latest documentation

Running Tests

To run framework tests with pytest:

pip install pytest
ANYBLOK_DATABASE_DRIVER=postgresql ANYBLOK_DATABASE_NAME=test_anyblok py.test anyblok_mixins/tests

AnyBlok is tested continuously using Travis CI

Author

Jean-Sébastien Suzanne

Contributors

  • Jean-Sébastien Suzanne

  • Pierre Verkest

  • Hugo Quezada

Bugs

Bugs and features enhancements to AnyBlok should be reported on the Issue tracker.

CHANGELOG

1.0.2 (2020-10-16)

  • Refactored unit test to use pytest

  • Updated documentation and README

1.0.1 (2020-10-16)

  • Fixed get_state, where the capitalier is a function and is now executed

1.0.0 (2018-05-29)

  • Cherry pick mixins from anyblok-core

  • Add SchemaValidator method

  • Add basic mixins

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

anyblok_mixins-1.0.2.tar.gz (16.2 kB view hashes)

Uploaded Source

Built Distribution

anyblok_mixins-1.0.2-py3-none-any.whl (20.7 kB view hashes)

Uploaded Python 3

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