Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anyblok/anyblok_mixins
https://github.com/anyblok/anyblok_mixins
technical
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/anyblok/anyblok_mixins
- Owner: AnyBlok
- License: mpl-2.0
- Created: 2018-05-25T07:56:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-08T11:56:14.000Z (over 3 years ago)
- Last Synced: 2024-08-31T05:28:16.356Z (5 months ago)
- Topics: technical
- Language: Python
- Size: 45.9 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. This file is a part of the AnyBlok project
..
.. Copyright (C) 2014 Jean-Sebastien SUZANNE
..
.. 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.org/project/anyblok_mixins/
: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 versionsAnyBlok
=======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/testsAnyBlok is tested continuously using `Travis CI
`_Author
------Jean-Sébastien Suzanne
Contributors
------------* Jean-Sébastien Suzanne
* Pierre Verkest
* Hugo QuezadaBugs
----Bugs and features enhancements to AnyBlok should be reported on the `Issue
tracker `_.