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.

Files for anyblok_mixins, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size anyblok_mixins-1.0.2-py3-none-any.whl (20.7 kB) File type Wheel Python version 3.7 Upload date Hashes View
Filename, size anyblok_mixins-1.0.2.tar.gz (16.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page