add business mixins
Project description
.. This file is a part of the AnyBlok project
..
.. Copyright (C) 2014 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
..
.. This Source Code Form is subject to the terms of the Mozilla Public License,
.. v. 2.0. If a copy of the MPL was not distributed with this file,You can
.. obtain one at http://mozilla.org/MPL/2.0/.
.. image:: https://img.shields.io/pypi/v/anyblok_mixins.svg
:target: https://pypi.python.org/pypi/anyblok/
:alt: Version status
.. image:: https://travis-ci.org/AnyBlok/anyblok_mixins.svg?branch=master
:target: https://travis-ci.org/AnyBlok/anyblok_mixins
:alt: Build status
.. image:: https://coveralls.io/repos/github/AnyBlok/anyblok_mixins/badge.svg?branch=master
:target: https://coveralls.io/github/AnyBlok/anyblok_mixins?branch=master
:alt: Coverage
.. image:: https://readthedocs.org/projects/anyblok_mixins/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://anyblok-mixins.readthedocs.io/en/latest/?badge=latest
.. image:: https://badges.gitter.im/AnyBlok/community.svg
:alt: gitter
:target: https://gitter.im/AnyBlok/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
.. image:: https://img.shields.io/pypi/pyversions/anyblok_mixins.svg?longCache=True
:alt: 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 <https://anyblok-mixins.readthedocs.io/en/latest/>`_
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
<https://travis-ci.org/AnyBlok/anyblok_mixins>`_
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 <https://github.com/AnyBlok/anyblok_mixins/issues>`_.
.. This file is a part of the AnyBlok project
..
.. Copyright (C) 2018 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
..
.. This Source Code Form is subject to the terms of the Mozilla Public License,
.. v. 2.0. If a copy of the MPL was not distributed with this file,You can
.. obtain one at http://mozilla.org/MPL/2.0/.
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
..
.. Copyright (C) 2014 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
..
.. This Source Code Form is subject to the terms of the Mozilla Public License,
.. v. 2.0. If a copy of the MPL was not distributed with this file,You can
.. obtain one at http://mozilla.org/MPL/2.0/.
.. image:: https://img.shields.io/pypi/v/anyblok_mixins.svg
:target: https://pypi.python.org/pypi/anyblok/
:alt: Version status
.. image:: https://travis-ci.org/AnyBlok/anyblok_mixins.svg?branch=master
:target: https://travis-ci.org/AnyBlok/anyblok_mixins
:alt: Build status
.. image:: https://coveralls.io/repos/github/AnyBlok/anyblok_mixins/badge.svg?branch=master
:target: https://coveralls.io/github/AnyBlok/anyblok_mixins?branch=master
:alt: Coverage
.. image:: https://readthedocs.org/projects/anyblok_mixins/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://anyblok-mixins.readthedocs.io/en/latest/?badge=latest
.. image:: https://badges.gitter.im/AnyBlok/community.svg
:alt: gitter
:target: https://gitter.im/AnyBlok/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge
.. image:: https://img.shields.io/pypi/pyversions/anyblok_mixins.svg?longCache=True
:alt: 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 <https://anyblok-mixins.readthedocs.io/en/latest/>`_
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
<https://travis-ci.org/AnyBlok/anyblok_mixins>`_
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 <https://github.com/AnyBlok/anyblok_mixins/issues>`_.
.. This file is a part of the AnyBlok project
..
.. Copyright (C) 2018 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr>
..
.. This Source Code Form is subject to the terms of the Mozilla Public License,
.. v. 2.0. If a copy of the MPL was not distributed with this file,You can
.. obtain one at http://mozilla.org/MPL/2.0/.
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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea139bd6aebffc5471f6b6bed4491d00746da0d5db7b01da35b157d78a6e609f |
|
MD5 | aac374e84006282cd485ec4bce6c96ae |
|
BLAKE2b-256 | 8fccc08d582f75e21db5d8a34a40b535b2c658780a196f04519df1488122b50c |
File details
Details for the file anyblok_mixins-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: anyblok_mixins-1.0.2-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65aa302618f3b4bee12ff2e9285d1a0adda473dd155e4b98abc6c0e32d2a7101 |
|
MD5 | 3954bc41d54bea7ad0465a5d9f7ff1fc |
|
BLAKE2b-256 | 26019fc993f17ecb467c004864907a96f7e3954ca6b60b7d38ea243ca90d2787 |