tiferet 1.0.0b2__tar.gz → 1.0.0b3__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.
Files changed (64) hide show
  1. {tiferet-1.0.0b2/tiferet.egg-info → tiferet-1.0.0b3}/PKG-INFO +1 -1
  2. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/setup.py +1 -1
  3. tiferet-1.0.0b3/tiferet/configs/error.py +104 -0
  4. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contexts/container.py +0 -9
  5. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contexts/feature.py +5 -0
  6. tiferet-1.0.0b3/tiferet/proxies/yaml/__init__.py +0 -0
  7. {tiferet-1.0.0b2 → tiferet-1.0.0b3/tiferet.egg-info}/PKG-INFO +1 -1
  8. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet.egg-info/SOURCES.txt +1 -0
  9. tiferet-1.0.0b2/tiferet/configs/error.py +0 -48
  10. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/LICENSE +0 -0
  11. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/README.md +0 -0
  12. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/setup.cfg +0 -0
  13. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/__init__.py +0 -0
  14. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/clients/__init__.py +0 -0
  15. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/clients/yaml.py +0 -0
  16. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/commands/__init__.py +0 -0
  17. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/commands/app.py +0 -0
  18. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/commands/core.py +0 -0
  19. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/commands/dependencies.py +0 -0
  20. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/commands/settings.py +0 -0
  21. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/configs/__init__.py +0 -0
  22. /tiferet-1.0.0b2/tiferet/contexts/__init__.py → /tiferet-1.0.0b3/tiferet/configs/container.py +0 -0
  23. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/configs/settings.py +0 -0
  24. {tiferet-1.0.0b2/tiferet/handlers → tiferet-1.0.0b3/tiferet/contexts}/__init__.py +0 -0
  25. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contexts/app.py +0 -0
  26. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contexts/cache.py +0 -0
  27. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contexts/error.py +0 -0
  28. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contracts/__init__.py +0 -0
  29. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contracts/app.py +0 -0
  30. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contracts/cache.py +0 -0
  31. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contracts/container.py +0 -0
  32. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contracts/error.py +0 -0
  33. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contracts/feature.py +0 -0
  34. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/contracts/settings.py +0 -0
  35. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/data/__init__.py +0 -0
  36. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/data/app.py +0 -0
  37. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/data/container.py +0 -0
  38. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/data/error.py +0 -0
  39. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/data/feature.py +0 -0
  40. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/data/settings.py +0 -0
  41. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/domain/__init__.py +0 -0
  42. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/domain/app.py +0 -0
  43. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/domain/container.py +0 -0
  44. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/domain/core.py +0 -0
  45. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/domain/error.py +0 -0
  46. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/domain/feature.py +0 -0
  47. {tiferet-1.0.0b2/tiferet/proxies → tiferet-1.0.0b3/tiferet/handlers}/__init__.py +0 -0
  48. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/handlers/container.py +0 -0
  49. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/handlers/error.py +0 -0
  50. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/handlers/feature.py +0 -0
  51. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/models/__init__.py +0 -0
  52. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/models/app.py +0 -0
  53. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/models/container.py +0 -0
  54. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/models/error.py +0 -0
  55. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/models/feature.py +0 -0
  56. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/models/settings.py +0 -0
  57. {tiferet-1.0.0b2/tiferet/proxies/yaml → tiferet-1.0.0b3/tiferet/proxies}/__init__.py +0 -0
  58. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/proxies/yaml/app.py +0 -0
  59. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/proxies/yaml/container.py +0 -0
  60. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/proxies/yaml/error.py +0 -0
  61. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet/proxies/yaml/feature.py +0 -0
  62. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet.egg-info/dependency_links.txt +0 -0
  63. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet.egg-info/requires.txt +0 -0
  64. {tiferet-1.0.0b2 → tiferet-1.0.0b3}/tiferet.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tiferet
3
- Version: 1.0.0b2
3
+ Version: 1.0.0b3
4
4
  Summary: A multi-purpose application framework embodying beauty in form.
5
5
  Home-page: https://github.com/greatstrength/app
6
6
  Download-URL: https://github.com/greatstrength/app
@@ -9,7 +9,7 @@ config = {
9
9
  'url': r'https://github.com/greatstrength/app',
10
10
  'download_url': r'https://github.com/greatstrength/app',
11
11
  'author_email': 'andrew@greatstrength.me',
12
- 'version': '1.0.0-beta.2',
12
+ 'version': '1.0.0-beta.3',
13
13
  'license': 'BSD 3',
14
14
  'install_requires': [
15
15
  'schematics>=2.1.1',
@@ -0,0 +1,104 @@
1
+ # *** imports
2
+
3
+
4
+ # *** configs
5
+
6
+ # ** config: errors
7
+ ERRORS = [
8
+ dict(
9
+ id='parameter_parsing_failed',
10
+ name='Parameter Parsing Failed',
11
+ error_code='PARAMETER_PARSING_FAILED',
12
+ message=[
13
+ dict(lang='en_US', text='Failed to parse parameter: {}. Error: {}')
14
+ ]
15
+ ),
16
+ dict(
17
+ id='import_dependency_failed',
18
+ name='Import Dependency Failed',
19
+ error_code='IMPORT_DEPENDENCY_FAILED',
20
+ message=[
21
+ dict(lang='en_US', text='Failed to import dependency: {} from module {}. Error: {}')
22
+ ]
23
+ ),
24
+ dict(
25
+ id='invalid_dependency_error',
26
+ name='Invalid Dependency Error',
27
+ error_code='INVALID_DEPENDENCY_ERROR',
28
+ message=[
29
+ dict(lang='en_US', text='Dependency {} could not be resolved: {}')
30
+ ]
31
+ ),
32
+ dict(
33
+ id='app_repository_import_failed',
34
+ name='App Repository Import Failed',
35
+ error_code='APP_REPOSITORY_IMPORT_FAILED',
36
+ message=[
37
+ dict(lang='en_US', text='Failed to import app repository: {}.')
38
+ ]
39
+ ),
40
+ dict(
41
+ id='app_interface_not_found',
42
+ name='App Interface Not Found',
43
+ error_code='APP_INTERFACE_NOT_FOUND',
44
+ message=[
45
+ dict(lang='en_US', text='App interface with ID {} not found.')
46
+ ]
47
+ ),
48
+ dict(
49
+ id='feature_command_loading_failed',
50
+ name='Feature Command Loading Failed',
51
+ error_code='FEATURE_COMMAND_LOADING_FAILED',
52
+ message=[
53
+ dict(lang='en_US', text='Failed to load feature command attribute: {}. Ensure the container attributes are configured with the appropriate default settings/flags. {}')
54
+ ]
55
+ ),
56
+ dict(
57
+ id='error_not_found',
58
+ name='Error Not Found',
59
+ error_code='ERROR_NOT_FOUND',
60
+ message=[
61
+ dict(lang='en_US', text='Error not found: {}.')
62
+ ]
63
+ ),
64
+ dict(
65
+ id='container_attributes_not_found',
66
+ name='Container Attributes Not Found',
67
+ error_code='CONTAINER_ATTRIBUTES_NOT_FOUND',
68
+ message=[
69
+ dict(lang='en_US', text='No container attributes provided to load the container.')
70
+ ]
71
+ ),
72
+ dict(
73
+ id='dependency_type_not_found',
74
+ name='Dependency Type Not Found',
75
+ error_code='DEPENDENCY_TYPE_NOT_FOUND',
76
+ message=[
77
+ dict(lang='en_US', text='No dependency type found for attribute {} with flags {}.')
78
+ ]
79
+ ),
80
+ dict(
81
+ id='request_not_found',
82
+ name='Request Not Found',
83
+ error_code='REQUEST_NOT_FOUND',
84
+ message=[
85
+ dict(lang='en_US', text='Request data is not available for parameter parsing.')
86
+ ]
87
+ ),
88
+ dict(
89
+ id='parameter_not_found',
90
+ name='Parameter Not Found',
91
+ error_code='PARAMETER_NOT_FOUND',
92
+ message=[
93
+ dict(lang='en_US', text='Parameter {} not found in request data.')
94
+ ]
95
+ ),
96
+ dict(
97
+ id='feature_not_found',
98
+ name='Feature Not Found',
99
+ error_code='FEATURE_NOT_FOUND',
100
+ message=[
101
+ dict(lang='en_US', text='Feature with ID {} not found.')
102
+ ]
103
+ ),
104
+ ]
@@ -120,15 +120,6 @@ class ContainerContext(Model):
120
120
  injector=injector,
121
121
  dependency_name=attribute_id,
122
122
  )
123
-
124
- # Raise an error if the dependency is not found.
125
- if not dependency:
126
- raise_error.execute(
127
- 'CONTAINER_DEPENDENCY_NOT_FOUND',
128
- f'Dependency with ID {attribute_id} not found in container with flags {flags}.',
129
- attribute_id,
130
- flags
131
- )
132
123
 
133
124
  # Return the dependency.
134
125
  return dependency
@@ -98,9 +98,14 @@ class FeatureContext(object):
98
98
  **request.data,
99
99
  **kwargs
100
100
  )
101
+
102
+ # If an error occurs during command execution, handle it based on the pass_on_error flag.
101
103
  except Exception as e:
102
104
  if not pass_on_error:
103
105
  raise e
106
+
107
+ # Set the result to None if passing on the error.
108
+ result = None
104
109
 
105
110
  # If a data key is provided, store the result in the request data.
106
111
  if data_key:
File without changes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tiferet
3
- Version: 1.0.0b2
3
+ Version: 1.0.0b3
4
4
  Summary: A multi-purpose application framework embodying beauty in form.
5
5
  Home-page: https://github.com/greatstrength/app
6
6
  Download-URL: https://github.com/greatstrength/app
@@ -15,6 +15,7 @@ tiferet/commands/core.py
15
15
  tiferet/commands/dependencies.py
16
16
  tiferet/commands/settings.py
17
17
  tiferet/configs/__init__.py
18
+ tiferet/configs/container.py
18
19
  tiferet/configs/error.py
19
20
  tiferet/configs/settings.py
20
21
  tiferet/contexts/__init__.py
@@ -1,48 +0,0 @@
1
- # *** imports
2
-
3
-
4
- # *** configs
5
-
6
- # ** config: errors
7
- ERRORS = [
8
- dict(
9
- id='parameter_parsing_failed',
10
- name='Parameter Parsing Failed',
11
- error_code='PARAMETER_PARSING_FAILED',
12
- message=[
13
- dict(lang='en_US', text='Failed to parse parameter: {}. Error: {}')
14
- ]
15
- ),
16
- dict(
17
- id='import_dependency_failed',
18
- name='Import Dependency Failed',
19
- error_code='IMPORT_DEPENDENCY_FAILED',
20
- message=[
21
- dict(lang='en_US', text='Failed to import dependency: {} from module {}. Error: {}')
22
- ]
23
- ),
24
- dict(
25
- id='app_repository_import_failed',
26
- name='App Repository Import Failed',
27
- error_code='APP_REPOSITORY_IMPORT_FAILED',
28
- message=[
29
- dict(lang='en_US', text='Failed to import app repository: {}.')
30
- ]
31
- ),
32
- dict(
33
- id='app_interface_not_found',
34
- name='App Interface Not Found',
35
- error_code='APP_INTERFACE_NOT_FOUND',
36
- message=[
37
- dict(lang='en_US', text='App interface with ID {} not found.')
38
- ]
39
- ),
40
- dict(
41
- id='feature_command_loading_failed',
42
- name='Feature Command Loading Failed',
43
- error_code='FEATURE_COMMAND_LOADING_FAILED',
44
- message=[
45
- dict(lang='en_US', text='Failed to load feature command attribute: {}. Ensure the container attributes are configured with the appropriate default settings/flags. {}')
46
- ]
47
- )
48
- ]
File without changes
File without changes
File without changes
File without changes
File without changes