This package is used to control holonet from a django project.
Project description
django-holonet |Build status| |Coverage status| |pypi version|
==============================================================
This package is used to control holonet from a django project.
Quickstart
----------
Install django-holonet:
$ pip install django-holonet
Settings
--------
HOLONET_RECIPIENT_MODEL = 'appname.Modelname'
The HOLONET_RECIPIENT_MODEL holds all recipients. All changes in this model are automatically updated in Holonet. The default is settings.AUTH_USER_MODEL.
HOLONET_RECIPIENT_UNIQUE_IDENTIFIER_FIELD = 'fieldname'
The HOLONET_RECIPIENT_UNIQUE_IDENTIFIER_FIELD is a string with the name of the field in the model that is unique for all elements. the default is 'pk'
HOLONET_RECIPIENT_EMAIL_FIELD = 'fieldname'
The HOLONET_RECIPIENT_EMAIL_FIELD holds the fieldname that holds the email in the model. The default is 'email'.
HOLONET_MAPPING_MODELS = {}
This is a dict with all the mappings models which extends the MailMapping class. django-holonet would listen on changes on these models. Each key holds dictionary with settings for for the given mappingmodel. Below is a list of possible settings for a mappingmodel.
* **recipient_relations** (optional): a list of ManyToManyFields with recipients. The to-relation of this field is not important, django-holonet will listen on changes and update the recipient list if there are changes in this relation, but get the recipient-list from get_recipients method on the MailMapping class. The get_recipients method needs to return a list of instances from the RECIPIENT_MODEL class.
Example:
::
HOLONET_MAPPING_MODELS={
'tests.Mapping1': {
'recipient_relations': ['recipients']
},
'tests.Mapping2': {}
}
-------------------
MIT © Abakus Webkom
.. |Build status| image:: https://ci.frigg.io/badges/webkom/django-holonet/
:target: https://ci.frigg.io/webkom/django-holonet/
.. |Coverage status| image:: http://ci.frigg.io/badges/coverage/webkom/django-holonet/
:target: https://ci.frigg.io/webkom/django-holonet/
.. |pypi version| image:: https://badge.fury.io/py/django-holonet.png
:target: http://badge.fury.io/py/django-holonet
==============================================================
This package is used to control holonet from a django project.
Quickstart
----------
Install django-holonet:
$ pip install django-holonet
Settings
--------
HOLONET_RECIPIENT_MODEL = 'appname.Modelname'
The HOLONET_RECIPIENT_MODEL holds all recipients. All changes in this model are automatically updated in Holonet. The default is settings.AUTH_USER_MODEL.
HOLONET_RECIPIENT_UNIQUE_IDENTIFIER_FIELD = 'fieldname'
The HOLONET_RECIPIENT_UNIQUE_IDENTIFIER_FIELD is a string with the name of the field in the model that is unique for all elements. the default is 'pk'
HOLONET_RECIPIENT_EMAIL_FIELD = 'fieldname'
The HOLONET_RECIPIENT_EMAIL_FIELD holds the fieldname that holds the email in the model. The default is 'email'.
HOLONET_MAPPING_MODELS = {}
This is a dict with all the mappings models which extends the MailMapping class. django-holonet would listen on changes on these models. Each key holds dictionary with settings for for the given mappingmodel. Below is a list of possible settings for a mappingmodel.
* **recipient_relations** (optional): a list of ManyToManyFields with recipients. The to-relation of this field is not important, django-holonet will listen on changes and update the recipient list if there are changes in this relation, but get the recipient-list from get_recipients method on the MailMapping class. The get_recipients method needs to return a list of instances from the RECIPIENT_MODEL class.
Example:
::
HOLONET_MAPPING_MODELS={
'tests.Mapping1': {
'recipient_relations': ['recipients']
},
'tests.Mapping2': {}
}
-------------------
MIT © Abakus Webkom
.. |Build status| image:: https://ci.frigg.io/badges/webkom/django-holonet/
:target: https://ci.frigg.io/webkom/django-holonet/
.. |Coverage status| image:: http://ci.frigg.io/badges/coverage/webkom/django-holonet/
:target: https://ci.frigg.io/webkom/django-holonet/
.. |pypi version| image:: https://badge.fury.io/py/django-holonet.png
:target: http://badge.fury.io/py/django-holonet
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
django-holonet-0.0.1.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file django-holonet-0.0.1.tar.gz
.
File metadata
- Download URL: django-holonet-0.0.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0b730ccfed6f605614eafcb9f83c5fc7c4d25878dec44fb65cef69c9a1b4c94 |
|
MD5 | d62a58c7b99bf2c32bf5b19206176268 |
|
BLAKE2b-256 | 99ff5ed3695fea2dd712a0ba6b05151e713b4dbab64c56a8729a89c9addaeb3a |
File details
Details for the file django_holonet-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: django_holonet-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb3432127c02d6b3bd9bd78e3e94e8ac11ddc0ee2832b92af313abf356a64e0c |
|
MD5 | d606c39355bc3f9422a2be43c90ba69d |
|
BLAKE2b-256 | 83d345773aae315c99b7b455ad83f1c79a19658486b211e3752589a90a94e2e8 |