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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file anyblok_mixins-1.0.2.tar.gz.

File metadata

  • Download URL: anyblok_mixins-1.0.2.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for anyblok_mixins-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ea139bd6aebffc5471f6b6bed4491d00746da0d5db7b01da35b157d78a6e609f
MD5 aac374e84006282cd485ec4bce6c96ae
BLAKE2b-256 8fccc08d582f75e21db5d8a34a40b535b2c658780a196f04519df1488122b50c

See more details on using hashes here.

File details

Details for the file anyblok_mixins-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for anyblok_mixins-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 65aa302618f3b4bee12ff2e9285d1a0adda473dd155e4b98abc6c0e32d2a7101
MD5 3954bc41d54bea7ad0465a5d9f7ff1fc
BLAKE2b-256 26019fc993f17ecb467c004864907a96f7e3954ca6b60b7d38ea243ca90d2787

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page