ramifice 0.8.17__py3-none-any.whl → 0.8.18__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ramifice
3
- Version: 0.8.17
3
+ Version: 0.8.18
4
4
  Summary: ORM-pseudo-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/
@@ -192,16 +192,17 @@ class User:
192
192
  async def add_validation(self) -> dict[str, str]:
193
193
  """Additional validation of fields."""
194
194
  gettext = translations.gettext
195
- cd, err_map = self.get_clean_data()
195
+ cd, err = self.get_clean_data()
196
196
 
197
197
  # Check username
198
198
  if re.match(r"^[a-zA-Z0-9_]+$", cd["username"]) is None:
199
- err_map["username"] = gettext("Allowed chars: %s") % "a-z A-Z 0-9 _"
199
+ err["username"] = gettext("Allowed chars: %s") % "a-z A-Z 0-9 _"
200
200
 
201
201
  # Check password
202
202
  if cd["_id"] is None and (cd["password"] != cd["сonfirm_password"]):
203
- err_map["password"] = gettext("Passwords do not match!")
204
- return err_map
203
+ err["password"] = gettext("Passwords do not match!")
204
+
205
+ return err
205
206
 
206
207
 
207
208
  async def main():
@@ -78,7 +78,7 @@ ramifice/utils/mixins/add_valid.py,sha256=00eIBlgsUU1TfDo1rUQT5zw7_Iv9IubORTbzuK
78
78
  ramifice/utils/mixins/hooks.py,sha256=h8coNstWWHI4VwPgpjx0NWTj93-5NDAGtav0VFh-fk4,1031
79
79
  ramifice/utils/mixins/indexing.py,sha256=WVLxmkLKg-C_LHn2hq6LJuOkSr9eS-XUUvCMgK-pKYo,387
80
80
  ramifice/utils/mixins/json_converter.py,sha256=qBqFYol3Pbq1kX33EWB6FsYUL3AGSdYNtQE97HQ9jy4,1225
81
- ramifice-0.8.17.dist-info/METADATA,sha256=gXiqJfKJX6s5dpHEir2eZeU82lhZPdUP9Osf74Ba6BI,20884
82
- ramifice-0.8.17.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
- ramifice-0.8.17.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
84
- ramifice-0.8.17.dist-info/RECORD,,
81
+ ramifice-0.8.18.dist-info/METADATA,sha256=NKDPQCc_IzbwiTH9TWzEbyYQnDlnahYPrTa-22Rf574,20869
82
+ ramifice-0.8.18.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
83
+ ramifice-0.8.18.dist-info/licenses/LICENSE,sha256=LrEL0aTZx90HDwFUQCJutORiDjJL9AnuVvCtspXIqt4,1095
84
+ ramifice-0.8.18.dist-info/RECORD,,