ramifice 0.3.13__py3-none-any.whl → 0.3.14__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.
@@ -21,7 +21,7 @@ class BoolGroupMixin:
21
21
  value = field.value
22
22
 
23
23
  if not isinstance(value, (bool, type(None))):
24
- self.type_value_error("bool", params) # type: ignore[attr-defined]
24
+ self.panic_type_error("bool", params) # type: ignore[attr-defined]
25
25
 
26
26
  if not params["is_update"] and value is None:
27
27
  value = field.default
@@ -26,7 +26,7 @@ class DateGroupMixin:
26
26
  value = field.value or field.default or None
27
27
 
28
28
  if not isinstance(value, (datetime, type(None))):
29
- self.type_value_error("datetime", params) # type: ignore[attr-defined]
29
+ self.panic_type_error("datetime", params) # type: ignore[attr-defined]
30
30
 
31
31
  if value is None:
32
32
  if field.required:
@@ -22,7 +22,7 @@ class FileGroupMixin:
22
22
  value = field.value or None
23
23
 
24
24
  if not isinstance(value, (dict, type(None))):
25
- self.type_value_error("dict", params) # type: ignore[attr-defined]
25
+ self.panic_type_error("dict", params) # type: ignore[attr-defined]
26
26
 
27
27
  if not params["is_update"]:
28
28
  if value is None:
@@ -25,7 +25,7 @@ class IDGroupMixin:
25
25
  value = field.value or None
26
26
 
27
27
  if not isinstance(value, (ObjectId, type(None))):
28
- self.type_value_error("ObjectId", params) # type: ignore[attr-defined]
28
+ self.panic_type_error("ObjectId", params) # type: ignore[attr-defined]
29
29
 
30
30
  if value is None:
31
31
  if field.required:
@@ -24,7 +24,7 @@ class ImgGroupMixin:
24
24
  value = field.value or None
25
25
 
26
26
  if not isinstance(value, (dict, type(None))):
27
- self.type_value_error("dict", params) # type: ignore[attr-defined]
27
+ self.panic_type_error("dict", params) # type: ignore[attr-defined]
28
28
 
29
29
  if not params["is_update"]:
30
30
  if value is None:
@@ -26,10 +26,10 @@ class NumGroupMixin:
26
26
 
27
27
  if "Float" in field.field_type:
28
28
  if not isinstance(value, (float, type(None))):
29
- self.type_value_error("float", params) # type: ignore[attr-defined]
29
+ self.panic_type_error("float", params) # type: ignore[attr-defined]
30
30
  else:
31
31
  if not isinstance(value, (int, type(None))):
32
- self.type_value_error("int", params) # type: ignore[attr-defined]
32
+ self.panic_type_error("int", params) # type: ignore[attr-defined]
33
33
 
34
34
  if value is None:
35
35
  if field.required:
@@ -27,7 +27,7 @@ class PassGroupMixin:
27
27
  value = field.value or None
28
28
 
29
29
  if not isinstance(value, (str, type(None))):
30
- self.type_value_error("str", params) # type: ignore[attr-defined]
30
+ self.panic_type_error("str", params) # type: ignore[attr-defined]
31
31
 
32
32
  if value is None:
33
33
  if field.required:
@@ -27,7 +27,7 @@ class TextGroupMixin:
27
27
  value = field.value or field.default or None
28
28
 
29
29
  if not isinstance(value, (str, type(None))):
30
- self.type_value_error("str", params) # type: ignore[attr-defined]
30
+ self.panic_type_error("str", params) # type: ignore[attr-defined]
31
31
 
32
32
  if value is None:
33
33
  if field.required:
@@ -62,7 +62,7 @@ class ToolMixin:
62
62
  )
63
63
  raise PanicError(msg)
64
64
 
65
- def type_value_error(self, value_type: str, params: dict[str, Any]) -> None:
65
+ def panic_type_error(self, value_type: str, params: dict[str, Any]) -> None:
66
66
  """Unacceptable type of value."""
67
67
  msg = (
68
68
  f"Model: `{self.full_model_name()}` > " # type: ignore[attr-defined]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ramifice
3
- Version: 0.3.13
3
+ Version: 0.3.14
4
4
  Summary: ORM-like API MongoDB for Python language.
5
5
  Project-URL: Homepage, https://github.com/kebasyaty/ramifice
6
6
  Project-URL: Documentation, https://kebasyaty.github.io/ramifice/
@@ -62,19 +62,19 @@ ramifice/paladins/delete.py,sha256=EFhr5yJDrvv1Sy3Z_x5gYjuMCDLuSYlRFdPDkvOFhgg,3
62
62
  ramifice/paladins/password.py,sha256=O1OvmeKuXbwtBX1sPTRVsoWYHPQn9isOe1rju6A3wbE,3264
63
63
  ramifice/paladins/refrash.py,sha256=bfVmpyxlDIY2ASOd-BnCWTnlMO7tbYvN-A83CaR_73s,1193
64
64
  ramifice/paladins/save.py,sha256=IeVBc3aLpJsdxNOS_O5GrnACZftWdbVP8qVpsd7pD1Y,3549
65
- ramifice/paladins/tools.py,sha256=KCY0RMCPrqNAFxA073NBOkTUyrkor8Cb1ZhX0G0apt8,4036
65
+ ramifice/paladins/tools.py,sha256=Q1D678j-1jr5qsM75gz2pGJBtH-wIW12LmNsvz2B-Zw,4036
66
66
  ramifice/paladins/groups/__init__.py,sha256=hpqmWLsYAMvZHAbmMXluQSqLhkHOSTUAgLHyTM1LTYI,472
67
- ramifice/paladins/groups/bool_group.py,sha256=y6HnnnP9YpcE6vuDeaKPGimAxJVNx8Gj5bMyvl2Hli0,780
67
+ ramifice/paladins/groups/bool_group.py,sha256=bTdubd6tmdNsxPsh92lgI9fLmg5ppyGAbWyOZkJiPmE,780
68
68
  ramifice/paladins/groups/choice_group.py,sha256=Wa60SLiF8AdFAKC1eYdqaAb-ZuO1ICAia8If0oXTx-U,1755
69
- ramifice/paladins/groups/date_group.py,sha256=JhF9JXJ9JPQrF6ndAGQ0AnejVHqBBQoKa7fglzQd8_A,3813
70
- ramifice/paladins/groups/file_group.py,sha256=jWuYNskE6x0CxQbSTBay4padSiHnDCnJ-2UGFqvNQzM,3263
71
- ramifice/paladins/groups/id_group.py,sha256=zWZXcYCbq8dvvplG0Zz3xw7P5AKmYMwWZIcTSL4uLU4,1313
72
- ramifice/paladins/groups/img_group.py,sha256=13LkIWSHCrW-mtXrp3Tcc649npV9JoKV9_a1r8gmgtQ,5744
73
- ramifice/paladins/groups/num_group.py,sha256=Ak7JLO6FKI3Viq1p9NIZaJk0PHikQnU_JDdzsPLMPuE,2381
74
- ramifice/paladins/groups/pass_group.py,sha256=_2QG80cqVKAYVj_ONzpBA-ksbUjY0n9MArjE7hxGxsI,1929
69
+ ramifice/paladins/groups/date_group.py,sha256=KTOP_022SgVqQdiYoGR2T5RkI-Wdu3U3rjicn6BXU00,3813
70
+ ramifice/paladins/groups/file_group.py,sha256=cnwbFaN3DueERBgw9HmRvDs2THLXAYJCUdCPNcxJFpY,3263
71
+ ramifice/paladins/groups/id_group.py,sha256=H0YUJ5_7VO51Bs2JFcCVr9B5QjAXxzVqh6DKLlp9BbE,1313
72
+ ramifice/paladins/groups/img_group.py,sha256=WZsihfivrConmlJ9B9hefpJyFAa-EUH3mvmsI4Ns5dI,5744
73
+ ramifice/paladins/groups/num_group.py,sha256=b60uSdDRCNzdv10tXYazfeWdY9JfBdU_8-lngkASXqg,2381
74
+ ramifice/paladins/groups/pass_group.py,sha256=89atp3RxvE45LIm4g_uGTFwfDRdSfOXY5s2vY0cqjgI,1929
75
75
  ramifice/paladins/groups/slug_group.py,sha256=AhTODxabYTWC41Xssnp9gqklUz9-GBS0lWyeHLXOYmw,1652
76
- ramifice/paladins/groups/text_group.py,sha256=BDfg9mmXgZUhuIUofnYel1Gf4ltGv-_SlWY9xObRzok,3397
77
- ramifice-0.3.13.dist-info/METADATA,sha256=a5KyZ2Uk6NxmUIg3ox5cElKacKCaenES6kieWH6NsQk,14182
78
- ramifice-0.3.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
- ramifice-0.3.13.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
80
- ramifice-0.3.13.dist-info/RECORD,,
76
+ ramifice/paladins/groups/text_group.py,sha256=ThZOcx0XCCZ_UZRS9FIix3T8zte2YlpHUZ61EwVMVGc,3397
77
+ ramifice-0.3.14.dist-info/METADATA,sha256=9sk21Xb5YYxVcgzKWpaVF9fAJMCocvzouhkY7hdHFQk,14182
78
+ ramifice-0.3.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
79
+ ramifice-0.3.14.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
80
+ ramifice-0.3.14.dist-info/RECORD,,