Skip to main content
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

Metadata

Release files for anyblok_mixins 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anyblok_mixins 1.0.2
File Size Uploaded
anyblok_mixins-1.0.2.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anyblok_mixins 1.0.2
File Interpreter ABI Platform
anyblok_mixins-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 36.9 kB

Release files / anyblok_mixins-1.0.2.tar.gz

Download URL anyblok_mixins-1.0.2.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ea139bd6aebffc5471f6b6bed4491d00746da0d5db7b01da35b157d78a6e609f
BLAKE2b-256 checksum
How to use checksums
8fccc08d582f75e21db5d8a34a40b535b2c658780a196f04519df1488122b50c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release files / anyblok_mixins-1.0.2-py3-none-any.whl

Download URL anyblok_mixins-1.0.2-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65aa302618f3b4bee12ff2e9285d1a0adda473dd155e4b98abc6c0e32d2a7101
BLAKE2b-256 checksum
How to use checksums
26019fc993f17ecb467c004864907a96f7e3954ca6b60b7d38ea243ca90d2787
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page