django-codenerix-email 4.0.2__py2.py3-none-any.whl → 4.0.4__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- codenerix_email/__init__.py +3 -3
- codenerix_email/management/__pycache__/__init__.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0001_initial.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-311.pyc +0 -0
- codenerix_email/migrations/__pycache__/__init__.cpython-311.pyc +0 -0
- codenerix_email/models.py +1 -1
- codenerix_email/views.py +46 -11
- {django_codenerix_email-4.0.2.dist-info → django_codenerix_email-4.0.4.dist-info}/LICENSE +1 -1
- {django_codenerix_email-4.0.2.dist-info → django_codenerix_email-4.0.4.dist-info}/METADATA +2 -2
- {django_codenerix_email-4.0.2.dist-info → django_codenerix_email-4.0.4.dist-info}/RECORD +18 -8
- {django_codenerix_email-4.0.2.dist-info → django_codenerix_email-4.0.4.dist-info}/WHEEL +0 -0
- {django_codenerix_email-4.0.2.dist-info → django_codenerix_email-4.0.4.dist-info}/top_level.txt +0 -0
codenerix_email/__init__.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
__version__ = "4.0.
|
|
1
|
+
__version__ = "4.0.4"
|
|
2
2
|
|
|
3
3
|
__authors__ = [
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
"Juan Miguel Taboada Godoy <juanmi@juanmitaboada.com>",
|
|
5
|
+
"Juan Soler Ruiz <soleronline@gmail.com>",
|
|
6
6
|
]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
codenerix_email/models.py
CHANGED
|
@@ -30,7 +30,7 @@ from django.core.exceptions import ValidationError
|
|
|
30
30
|
from django.conf import settings
|
|
31
31
|
|
|
32
32
|
from codenerix.models import CodenerixModel
|
|
33
|
-
from
|
|
33
|
+
from codenerix_lib.debugger import Debugger
|
|
34
34
|
from codenerix.lib.genmail import EmailMessage as EM, get_connection
|
|
35
35
|
from codenerix.fields import WysiwygAngularField
|
|
36
36
|
|
codenerix_email/views.py
CHANGED
|
@@ -18,26 +18,56 @@
|
|
|
18
18
|
# See the License for the specific language governing permissions and
|
|
19
19
|
# limitations under the License.
|
|
20
20
|
|
|
21
|
+
from typing import Optional, Tuple, List, Dict, Any
|
|
22
|
+
|
|
21
23
|
from django.utils.translation import gettext as _
|
|
22
24
|
from django.conf import settings
|
|
25
|
+
from django.http import HttpRequest
|
|
23
26
|
|
|
24
27
|
from codenerix.multiforms import MultiForm
|
|
25
|
-
from codenerix.views import
|
|
28
|
+
from codenerix.views import (
|
|
29
|
+
GenList,
|
|
30
|
+
GenCreate,
|
|
31
|
+
GenCreateModal,
|
|
32
|
+
GenUpdate,
|
|
33
|
+
GenUpdateModal,
|
|
34
|
+
GenDelete,
|
|
35
|
+
GenDetail,
|
|
36
|
+
)
|
|
26
37
|
from codenerix_email.models import EmailTemplate, EmailMessage, MODELS
|
|
27
38
|
from codenerix_email.forms import EmailTemplateForm, EmailMessageForm
|
|
28
39
|
|
|
29
|
-
formsfull
|
|
40
|
+
formsfull: Dict[
|
|
41
|
+
str,
|
|
42
|
+
List[
|
|
43
|
+
Tuple[
|
|
44
|
+
Optional[HttpRequest],
|
|
45
|
+
Optional[str],
|
|
46
|
+
Optional[str],
|
|
47
|
+
]
|
|
48
|
+
],
|
|
49
|
+
] = {}
|
|
30
50
|
|
|
31
51
|
for info in MODELS:
|
|
32
52
|
field = info[0]
|
|
33
53
|
model = info[1]
|
|
34
54
|
formsfull[model] = [(None, None, None)]
|
|
35
55
|
for lang_code in settings.LANGUAGES_DATABASES:
|
|
36
|
-
query = "from codenerix_email.models import {}Text{}\n".format(
|
|
37
|
-
|
|
56
|
+
query = "from codenerix_email.models import {}Text{}\n".format(
|
|
57
|
+
model, lang_code
|
|
58
|
+
)
|
|
59
|
+
query += "from codenerix_email.forms import {}TextForm{}".format(
|
|
60
|
+
model, lang_code
|
|
61
|
+
)
|
|
38
62
|
exec(query)
|
|
39
63
|
|
|
40
|
-
formsfull[model].append(
|
|
64
|
+
formsfull[model].append(
|
|
65
|
+
(
|
|
66
|
+
eval("{}TextForm{}".format(model, lang_code.upper())),
|
|
67
|
+
field,
|
|
68
|
+
None,
|
|
69
|
+
)
|
|
70
|
+
)
|
|
41
71
|
|
|
42
72
|
|
|
43
73
|
# ############################################
|
|
@@ -45,8 +75,8 @@ for info in MODELS:
|
|
|
45
75
|
class EmailTemplateList(GenList):
|
|
46
76
|
model = EmailTemplate
|
|
47
77
|
extra_context = {
|
|
48
|
-
|
|
49
|
-
|
|
78
|
+
"menu": ["EmailTemplate", "people"],
|
|
79
|
+
"bread": [_("EmailTemplate"), _("People")],
|
|
50
80
|
}
|
|
51
81
|
|
|
52
82
|
|
|
@@ -79,12 +109,17 @@ class EmailTemplateDelete(GenDelete):
|
|
|
79
109
|
class EmailMessageList(GenList):
|
|
80
110
|
model = EmailMessage
|
|
81
111
|
show_details = True
|
|
82
|
-
default_ordering = [
|
|
112
|
+
default_ordering = ["-created"]
|
|
83
113
|
static_partial_row = "codenerix_email/partials/emailmessages_rows.html"
|
|
84
|
-
gentranslate = {
|
|
114
|
+
gentranslate = {
|
|
115
|
+
"sending": _("Sending"),
|
|
116
|
+
"sent": _("Sent"),
|
|
117
|
+
"notsent": _("Not sent!"),
|
|
118
|
+
"waiting": _("Waiting"),
|
|
119
|
+
}
|
|
85
120
|
extra_context = {
|
|
86
|
-
|
|
87
|
-
|
|
121
|
+
"menu": ["EmailMessage", "people"],
|
|
122
|
+
"bread": [_("EmailMessage"), _("People")],
|
|
88
123
|
}
|
|
89
124
|
|
|
90
125
|
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright 2024 Codenerix
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-codenerix-email
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.4
|
|
4
4
|
Summary: Codenerix Email is a module that enables CODENERIX to set send emails in a general manner.
|
|
5
5
|
Home-page: https://github.com/codenerix/django-codenerix-email
|
|
6
6
|
Author: Juan Miguel Taboada Godoy <juanmi@juanmitaboada.com>, Juan Soler Ruiz <soleronline@gmail.com>
|
|
@@ -24,8 +24,8 @@ Classifier: Programming Language :: Python :: 3.5
|
|
|
24
24
|
Classifier: Topic :: Internet :: WWW/HTTP
|
|
25
25
|
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
|
26
26
|
License-File: LICENSE
|
|
27
|
-
Requires-Dist: django-codenerix
|
|
28
27
|
Requires-Dist: django-codenerix-extensions
|
|
28
|
+
Requires-Dist: django-codenerix (>=4.0.11)
|
|
29
29
|
|
|
30
30
|
======================
|
|
31
31
|
django-codenerix-email
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
codenerix_email/__init__.py,sha256=
|
|
1
|
+
codenerix_email/__init__.py,sha256=aXqmnuc-1pMx6KESntAS66GdRCnj7EJtZO3ejqq9mZo,148
|
|
2
2
|
codenerix_email/admin.py,sha256=o3b-MaD7xsWeta0yfU9YNeKBmHQIcmHqXmP2t-hrrWc,1208
|
|
3
3
|
codenerix_email/apps.py,sha256=WXqu1XQibDDyCvvQYt2JbTK4GIpW8BNv5DCbRJS2mmk,149
|
|
4
4
|
codenerix_email/forms.py,sha256=Px6ThD6NE9b23S_lGAXxr6ek6A1YssUMbKP9irTCgw8,3157
|
|
5
|
-
codenerix_email/models.py,sha256=
|
|
5
|
+
codenerix_email/models.py,sha256=lkII0rUrO62oCkGv2Ro2JynVfW_mzeWOPqpPT6dkM8I,12659
|
|
6
6
|
codenerix_email/urls.py,sha256=QYrSJdhCp2PLrcfv_Y7X4OzxqQ0Q2-z7ObDPE-_WLdw,2595
|
|
7
|
-
codenerix_email/views.py,sha256=
|
|
7
|
+
codenerix_email/views.py,sha256=YAYEgJDaNqlUoLH6Qwnv7GxqrqJbPE4kBL3BZs2oP9Y,3804
|
|
8
8
|
codenerix_email/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
codenerix_email/management/__pycache__/__init__.cpython-310.pyc,sha256=7vUcYbg6ZpWdEhb0hq2FSiwMtpBWIjMTv8H8rcgtiOY,179
|
|
10
|
+
codenerix_email/management/__pycache__/__init__.cpython-311.pyc,sha256=OtPcxwWjtJcDfDWQCWutxYIIwHerLtkPPyMcEFOpdMM,195
|
|
10
11
|
codenerix_email/management/__pycache__/__init__.cpython-35.pyc,sha256=sBoEWs6zdI0al-7t1deW9SE_Ln2RNDl2LyIiOO9gfRA,160
|
|
11
12
|
codenerix_email/management/__pycache__/__init__.cpython-39.pyc,sha256=uPXklfliVd3b8pLOJQT9ZeKcqmJMrGychvt68BsPulY,168
|
|
12
13
|
codenerix_email/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -22,35 +23,44 @@ codenerix_email/migrations/0007_emailmessage_next_retry.py,sha256=aSOTLqoYFo2V78
|
|
|
22
23
|
codenerix_email/migrations/0008_auto_20171201_0928.py,sha256=cqlgf9IfNgU-IJey073K1FT-pp6i2gXDgLnU-xrFir0,731
|
|
23
24
|
codenerix_email/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
25
|
codenerix_email/migrations/__pycache__/0001_initial.cpython-310.pyc,sha256=Sm54OKfGHUMvSVgbXiFAe9E2d85HqlLoMEaBEBP53mE,2005
|
|
26
|
+
codenerix_email/migrations/__pycache__/0001_initial.cpython-311.pyc,sha256=mOTNcz_iff63bExW7wNyR_HXU-e8ON-Au03YpCL_cCw,3682
|
|
25
27
|
codenerix_email/migrations/__pycache__/0001_initial.cpython-35.pyc,sha256=o1rDga25c1uGi8Lwkc1_cxhPLANeqXCRzt7LlQcA9q0,2373
|
|
26
28
|
codenerix_email/migrations/__pycache__/0001_initial.cpython-39.pyc,sha256=mQWff6-hcg9Z9K81-Nzrs_1YSOhbjM9kE0YrFbV6RIs,2020
|
|
27
29
|
codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-310.pyc,sha256=WAPjfkNFQmN3-XkDyD14MSAN9BO81TJ1WtkaBShkt9Y,1500
|
|
30
|
+
codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-311.pyc,sha256=Rc_d1DFwW90HIppaxphmtTw5lrcds-697vygDz2IIb8,2664
|
|
28
31
|
codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-35.pyc,sha256=bS7TIZyg_w_TjQmp2SvPUGj8UzEwD-7eOOh1e5hbBMA,1692
|
|
29
32
|
codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-39.pyc,sha256=iQ0y2-fNC6oNKxgDuWkYTmoyotm59a5gM0sdmrS8AXM,1515
|
|
30
33
|
codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-310.pyc,sha256=eBWNWUvCRT3Hx7RB3q8a-sfwnaAGGL1R3HAuZVF9B-I,694
|
|
34
|
+
codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-311.pyc,sha256=tr_ArowvVsDRbB-v7YSlp13XTDp4Styk9-uPLWE-R6k,967
|
|
31
35
|
codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-35.pyc,sha256=_Ie38P9DBAPqdJKfO_QO41ulOkYjfH3LSoEz3_X6r4k,782
|
|
32
36
|
codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-39.pyc,sha256=eXU1dbbIu4mk9de7nDH7a6KGkkRGgDPE75ZXlXez6mU,709
|
|
33
37
|
codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-310.pyc,sha256=lK9340jHiOmqQmzJ5W68rRkUszDzT46fVPsSp8LhISA,676
|
|
38
|
+
codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-311.pyc,sha256=-EjtswZm8KP07RlSOqkZBCVkKK2PjuE8srfxdMnacdc,939
|
|
34
39
|
codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-35.pyc,sha256=qqDGLd7cwnb2oWfu-HtGc52yay0BGyZdHusRFrcwF-A,713
|
|
35
40
|
codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-39.pyc,sha256=GJkiiBltA2oJP_pLcXFhNocsmZ9-6JMwrjoCgWTvMUc,691
|
|
36
41
|
codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-310.pyc,sha256=4YqPVee-54TJz2Pzw6GSKrml9mfcsdoyrblnDBqYfRI,691
|
|
42
|
+
codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-311.pyc,sha256=twZoWIERu7KloHoLkdoi-2cUhZ2gtHS9RTqQ8K-eNBo,954
|
|
37
43
|
codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-35.pyc,sha256=q1iyggKDYSixO10GNa7NwkaCp1zc4XmJMf3_I6MFdng,728
|
|
38
44
|
codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-39.pyc,sha256=L27pZOAApj_zps1H-o1Dasoo6vsbjEV2LOcYWPMTkPI,706
|
|
39
45
|
codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-310.pyc,sha256=5jrOldyWL3nDXJSGHuO92Isv3tDTSW9TZMgwE1M2Zts,675
|
|
46
|
+
codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-311.pyc,sha256=xKsmVddcyfVGpLfjJFxVl5WfYSTmxW4XXXeFjZMteQg,938
|
|
40
47
|
codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-35.pyc,sha256=TF2SGyuip9sWJPB1rxcbBKhxKzuRe_XUqUz2p6_9QzE,712
|
|
41
48
|
codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-39.pyc,sha256=wL1FWhI8nFruZd5pxDbysqPDvzUVBz_5X36nSQcB2rA,690
|
|
42
49
|
codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-310.pyc,sha256=ZNGZ_u-sVBgyXgsKExk4YH_kx2tyFTio6bm9Cb_ONcI,802
|
|
50
|
+
codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-311.pyc,sha256=Oea6fWmN8ks2ohLrKR7cx9POtixzAVNC9vZBqKWkxNM,1111
|
|
43
51
|
codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-35.pyc,sha256=SRZaXtSXw295g226C-SZlpYPSZWsCCvIDH1Cb1-JD2I,854
|
|
44
52
|
codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-39.pyc,sha256=_SpjnrjYSI3XLxJ7SxT2J8_SMsaNf78vR-RqEQnBjZA,817
|
|
45
53
|
codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-310.pyc,sha256=sSx4Lnfdlze3mRSRtYy0Q1c3_bzNVT7jL2x180MMYkg,779
|
|
54
|
+
codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-311.pyc,sha256=ckxoz-Qfp3K2UrqPp0lcHN6lRZYJfsUzZaw8RdbwRoE,1178
|
|
46
55
|
codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-35.pyc,sha256=Df1c2lc4oumQRChm11uns52Kj1NyBvNlosTEpn2dDi8,839
|
|
47
56
|
codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-39.pyc,sha256=YQE0mlPzQ-MXjrPcJVK74O_rg6hsSnKJfTlqttYYlPU,794
|
|
48
57
|
codenerix_email/migrations/__pycache__/__init__.cpython-310.pyc,sha256=PdaaABMdLCzCMnJmxaylT_jnLb8l7rr6n5C4CGDX37A,151
|
|
58
|
+
codenerix_email/migrations/__pycache__/__init__.cpython-311.pyc,sha256=RbbUUEhcJ_eAVNFAdNbkjv60hyF7BsnNOlti5xplQsY,195
|
|
49
59
|
codenerix_email/migrations/__pycache__/__init__.cpython-35.pyc,sha256=2g70xiMW6oJNkIpRM-0Dr5h7AUac-3xyCXPONxp9BBw,147
|
|
50
60
|
codenerix_email/migrations/__pycache__/__init__.cpython-39.pyc,sha256=qNj2NH0YvoWPnCKxkVZPsEFsbM05y7t1njMskNISdVQ,168
|
|
51
61
|
codenerix_email/static/codenerix_email/partials/emailmessages_rows.html,sha256=4J7KBRZPoWs_QaJ-hqCnz7A3DUW1mmZDYkBmgbrTh0w,994
|
|
52
|
-
django_codenerix_email-4.0.
|
|
53
|
-
django_codenerix_email-4.0.
|
|
54
|
-
django_codenerix_email-4.0.
|
|
55
|
-
django_codenerix_email-4.0.
|
|
56
|
-
django_codenerix_email-4.0.
|
|
62
|
+
django_codenerix_email-4.0.4.dist-info/LICENSE,sha256=IXMIpi75XsrJt1Sznt4EftT9c_4X0C9eqK4tHhH8H48,11339
|
|
63
|
+
django_codenerix_email-4.0.4.dist-info/METADATA,sha256=qLjgOypa70yIPrToaTw15wWpsmcMEXzFVqR--kVcckI,2629
|
|
64
|
+
django_codenerix_email-4.0.4.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
|
65
|
+
django_codenerix_email-4.0.4.dist-info/top_level.txt,sha256=lljSA0iKE_UBEM5gIrGQwioC_i8Jjnp-aR1LFElENgw,16
|
|
66
|
+
django_codenerix_email-4.0.4.dist-info/RECORD,,
|
|
File without changes
|
{django_codenerix_email-4.0.2.dist-info → django_codenerix_email-4.0.4.dist-info}/top_level.txt
RENAMED
|
File without changes
|