django-codenerix-email 4.0.2__tar.gz → 4.0.3__tar.gz
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.
- {django-codenerix-email-4.0.2/django_codenerix_email.egg-info → django-codenerix-email-4.0.3}/PKG-INFO +1 -1
- django-codenerix-email-4.0.3/codenerix_email/__init__.py +6 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/views.py +46 -11
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3/django_codenerix_email.egg-info}/PKG-INFO +1 -1
- django-codenerix-email-4.0.2/codenerix_email/__init__.py +0 -6
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/LICENSE +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/MANIFEST.in +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/README.rst +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/admin.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/apps.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/forms.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/__init__.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/__pycache__/__init__.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/__pycache__/__init__.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/__pycache__/__init__.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/commands/__init__.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/commands/send_emails.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/commands/test_email.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0001_initial.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0002_auto_20170502_1043.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0003_auto_20170921_1206.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0004_auto_20171108_1628.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0005_emailmessage_retries.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0006_emailmessage_error.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0007_emailmessage_next_retry.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/0008_auto_20171201_0928.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__init__.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0001_initial.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0001_initial.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0001_initial.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0002_auto_20170502_1043.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0003_auto_20170921_1206.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0004_auto_20171108_1628.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0005_emailmessage_retries.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0006_emailmessage_error.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0007_emailmessage_next_retry.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/0008_auto_20171201_0928.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/__init__.cpython-310.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/__init__.cpython-35.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/models.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/static/codenerix_email/partials/emailmessages_rows.html +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/urls.py +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/django_codenerix_email.egg-info/SOURCES.txt +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/django_codenerix_email.egg-info/dependency_links.txt +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/django_codenerix_email.egg-info/not-zip-safe +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/django_codenerix_email.egg-info/requires.txt +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/django_codenerix_email.egg-info/top_level.txt +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/setup.cfg +0 -0
- {django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-codenerix-email
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.3
|
|
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>
|
|
@@ -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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-codenerix-email
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.3
|
|
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>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/management/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django-codenerix-email-4.0.2 → django-codenerix-email-4.0.3}/codenerix_email/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|