tiferet 1.0.0b1__py3-none-any.whl → 1.0.0b2__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.
@@ -22,10 +22,8 @@ class ContainerHandler(ContainerService):
22
22
  '''
23
23
  Initialize the container handler.
24
24
 
25
- :param name: The name of the container.
26
- :type name: str
27
- :param dependencies: The dependencies.
28
- :type dependencies: dict
25
+ :param container_repo: The container repository to use for managing container attributes.
26
+ :type container_repo: ContainerRepository
29
27
  '''
30
28
 
31
29
  # Assign the container repository.
@@ -69,15 +67,20 @@ class ContainerHandler(ContainerService):
69
67
  # If constants are provided, clean the parameters using the parse_parameter command.
70
68
  constants = {k: parse_parameter.execute(v) for k, v in constants.items()}
71
69
 
72
- # Iterate through each attribute to clean parameter dictionaries.
73
- # For each attribute, parse its parameters and add them to the constants dictionary.
74
- # For each dependency, parse its parameters and add them to the constants dictionary.
70
+ # Iterate through each attribute.
75
71
  for attr in attributes:
76
- constants.update({k: parse_parameter.execute(v) for k, v in attr.parameters.items()})
77
- dependency = attr.get_dependency(flags)
72
+
73
+ # If flags are provided, check for dependencies with those flags.
74
+ dependency = attr.get_dependency(*flags)
75
+
76
+ # Update the constants dictionary with the parsed parameters from the dependency or the attribute itself.
78
77
  if dependency:
79
78
  constants.update({k: parse_parameter.execute(v) for k, v in dependency.parameters.items()})
80
79
 
80
+ # If no dependency is found, use the attribute's parameters.
81
+ else:
82
+ constants.update({k: parse_parameter.execute(v) for k, v in attr.parameters.items()})
83
+
81
84
  # Return the updated constants dictionary.
82
85
  return constants
83
86
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tiferet
3
- Version: 1.0.0b1
3
+ Version: 1.0.0b2
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
@@ -29,7 +29,7 @@ tiferet/data/error.py,sha256=9GYkmHPDkttyOlfk-9t3lHIsoWFGVkpfDN1wMpdOfTM,2189
29
29
  tiferet/data/feature.py,sha256=hFUkbe-j9jqaMbnZq0sfo6N64NOl042oDwfadFTfVSY,3501
30
30
  tiferet/data/settings.py,sha256=mJh3EzGHATIX_geKyK6KRcCC6v2185V7swqwnym9mdQ,4277
31
31
  tiferet/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- tiferet/handlers/container.py,sha256=986kEkrjssinCHOwR0_CWEnNnaX54YI0d4UNb8n4gBU,4148
32
+ tiferet/handlers/container.py,sha256=P9PEpmotUy8jYQseWBRReIf4hz_RQIN1NF8qO4v2fmY,4220
33
33
  tiferet/handlers/error.py,sha256=j0AYMzskNMfzLydFfAh54NGxnaKlKFVzf_J3KpUOa2s,1242
34
34
  tiferet/handlers/feature.py,sha256=ar4j0OnUorZM5tR2thoLQUh2qjx9c0NuKjr1ZgPUzIY,2749
35
35
  tiferet/models/__init__.py,sha256=a8e7mleeLr0s554mRd1K0O0q2clisR7wGpeex1-9hsI,47
@@ -44,8 +44,8 @@ tiferet/proxies/yaml/app.py,sha256=qx0b2WtywfxtETN8OPfzrrzvYcuAY6uiyU9ctgpx8QI,2
44
44
  tiferet/proxies/yaml/container.py,sha256=raOeZ2CIAbNHTzPNqL2tgPvuad7-LcPL0a1NJ-nmUYY,2971
45
45
  tiferet/proxies/yaml/error.py,sha256=fFAFxbtVZ9dguvYb08TzrIBir1H0NYoe5JHjGm5HuTU,2885
46
46
  tiferet/proxies/yaml/feature.py,sha256=CKIsAqil27U0VjtVIHTiq3U9chNOZM6HAuUyH5VDF_o,2471
47
- tiferet-1.0.0b1.dist-info/licenses/LICENSE,sha256=e8_GutFM0sxbRlgUaeVsGvJ5uE-KvruLApOzIoHy_zU,1513
48
- tiferet-1.0.0b1.dist-info/METADATA,sha256=XV7cqV4Z8eOk-MHcsxzdiBevtyW0dB7JxwJCYyaBVwM,741
49
- tiferet-1.0.0b1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
- tiferet-1.0.0b1.dist-info/top_level.txt,sha256=g19Qw0j_VxPw-fgPF1TMPwbtHjnEhNQs0fa69wJZ6IM,8
51
- tiferet-1.0.0b1.dist-info/RECORD,,
47
+ tiferet-1.0.0b2.dist-info/licenses/LICENSE,sha256=e8_GutFM0sxbRlgUaeVsGvJ5uE-KvruLApOzIoHy_zU,1513
48
+ tiferet-1.0.0b2.dist-info/METADATA,sha256=rshmptQzPzcXXG_YhpCl1z5H3_oD07Y0SrE5lLZF7kg,741
49
+ tiferet-1.0.0b2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
50
+ tiferet-1.0.0b2.dist-info/top_level.txt,sha256=g19Qw0j_VxPw-fgPF1TMPwbtHjnEhNQs0fa69wJZ6IM,8
51
+ tiferet-1.0.0b2.dist-info/RECORD,,