tiferet 1.0.0a16__py3-none-any.whl → 1.0.0a18__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.
- tiferet/contexts/error.py +4 -3
- {tiferet-1.0.0a16.dist-info → tiferet-1.0.0a18.dist-info}/METADATA +1 -1
- {tiferet-1.0.0a16.dist-info → tiferet-1.0.0a18.dist-info}/RECORD +6 -6
- {tiferet-1.0.0a16.dist-info → tiferet-1.0.0a18.dist-info}/LICENSE +0 -0
- {tiferet-1.0.0a16.dist-info → tiferet-1.0.0a18.dist-info}/WHEEL +0 -0
- {tiferet-1.0.0a16.dist-info → tiferet-1.0.0a18.dist-info}/top_level.txt +0 -0
tiferet/contexts/error.py
CHANGED
@@ -35,10 +35,10 @@ class ErrorContext(Model):
|
|
35
35
|
'''
|
36
36
|
|
37
37
|
# Create the errors lookup from the error repository.
|
38
|
-
errors = {error.
|
38
|
+
errors = {error.id: error for error in error_repo.list()}
|
39
39
|
|
40
40
|
# Add custom errors.
|
41
|
-
errors.update({error.
|
41
|
+
errors.update({error.id: error for error in self.load_custom_errors()})
|
42
42
|
|
43
43
|
# Set the errors lookup and validate.
|
44
44
|
super().__init__(dict(errors=errors))
|
@@ -57,7 +57,7 @@ class ErrorContext(Model):
|
|
57
57
|
return [
|
58
58
|
Error.new(
|
59
59
|
name='FEATURE_NOT_FOUND',
|
60
|
-
error_code='
|
60
|
+
error_code='FEATURE_NOT_FOUND',
|
61
61
|
message=[
|
62
62
|
ErrorMessage.new(
|
63
63
|
lang='en_US',
|
@@ -113,6 +113,7 @@ class ErrorContext(Model):
|
|
113
113
|
# Set error response.
|
114
114
|
error_response = dict(
|
115
115
|
message=error.format(lang, *error_data if error_data else []),
|
116
|
+
error_code=error.error_code,
|
116
117
|
**kwargs
|
117
118
|
)
|
118
119
|
|
@@ -9,7 +9,7 @@ tiferet/configs/__init__.py,sha256=NfT6XFNcJznOLXjMuNmj3XeaOPVWwbc-N4kVWaVjuD0,8
|
|
9
9
|
tiferet/contexts/__init__.py,sha256=PvTgdVMav7B4pbKV4vxfNTMSod88DKGSR_0W8reIyC4,235
|
10
10
|
tiferet/contexts/app.py,sha256=_GiawlFowEbnVvBw6XgUlLjgLu2CwlHuK4ldT_v6a1c,8305
|
11
11
|
tiferet/contexts/container.py,sha256=Wo_2HENb7XPpIcZSkEikSGh8vWmClpLgkBbSW-jMDK4,6619
|
12
|
-
tiferet/contexts/error.py,sha256=
|
12
|
+
tiferet/contexts/error.py,sha256=uV3dKkQAQUP2ve6xPU0t3LGVi3zVyaIG9aDi6SyDtqQ,3315
|
13
13
|
tiferet/contexts/feature.py,sha256=kVVRpIyjWa3T2QoT2R-T7clOIQEpNMYa8ZJRVxgY_6o,3730
|
14
14
|
tiferet/contexts/request.py,sha256=EwTyXVYi8z1t1ns_0yDrjY6qICIMPn1UvZpV7ULKReY,2756
|
15
15
|
tiferet/data/__init__.py,sha256=JKaeCw508WY15-etqdFJxPUUJxMxCAi6ASmA472D1_s,93
|
@@ -28,8 +28,8 @@ tiferet/repos/app.py,sha256=VxPanqWw4lGi1VoajTXN3sv9yy_XV6m_95E6DTdMHb8,2900
|
|
28
28
|
tiferet/repos/container.py,sha256=n9Tz83QETdAocGAT4oKcvllEGwFp069pYqkXs2-KFFk,3519
|
29
29
|
tiferet/repos/error.py,sha256=jDze41uioKwKEkAswkzLubVw-bxsVyeUkJwyeO5Es0E,4245
|
30
30
|
tiferet/repos/feature.py,sha256=GxOV8XHNwz9YY3I8Wch6GaDskvkdi8l1hM9E9fCg1y0,3644
|
31
|
-
tiferet-1.0.
|
32
|
-
tiferet-1.0.
|
33
|
-
tiferet-1.0.
|
34
|
-
tiferet-1.0.
|
35
|
-
tiferet-1.0.
|
31
|
+
tiferet-1.0.0a18.dist-info/LICENSE,sha256=e8_GutFM0sxbRlgUaeVsGvJ5uE-KvruLApOzIoHy_zU,1513
|
32
|
+
tiferet-1.0.0a18.dist-info/METADATA,sha256=q2Vxbe3xeGd66WKRDL9a3EYKBIe-KmB9osGHtB1BXEk,536
|
33
|
+
tiferet-1.0.0a18.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
34
|
+
tiferet-1.0.0a18.dist-info/top_level.txt,sha256=g19Qw0j_VxPw-fgPF1TMPwbtHjnEhNQs0fa69wJZ6IM,8
|
35
|
+
tiferet-1.0.0a18.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|