django-restit 4.2.178__py3-none-any.whl → 4.2.179__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.
account/rpc/auth.py CHANGED
@@ -84,9 +84,10 @@ def on_complete_jwt(request, member, method="basic"):
84
84
  request.device_id = device_id
85
85
  request.buid = request.DATA.get("__buid__", None)
86
86
  request.auth_session = am.AuthSession.NewSession(request, method)
87
+ if not bool(device_id) and bool(request.buid):
88
+ device_id = request.buid
87
89
  if bool(device_id):
88
90
  am.MemberDevice.register(request, member, device_id)
89
-
90
91
  request.jwt_token = token.access_token # this tells the middleware to store in cookie
91
92
  return rv.restGet(
92
93
  request,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-restit
3
- Version: 4.2.178
3
+ Version: 4.2.179
4
4
  Summary: A Rest Framework for DJANGO
5
5
  License: MIT
6
6
  Author: Ian Starnes
@@ -43,7 +43,7 @@ account/passkeys/__init__.py,sha256=FwXYJXwSJXfkLojGBcVpF1dFpgFhzDdd9N_3naYQ0cc,
43
43
  account/passkeys/core.py,sha256=4aUBNCuF_kjOvE1zFapK1Pj28ap5slO71dRyfnWi0YU,4148
44
44
  account/periodic.py,sha256=-u0n-7QTJgDOkasGhBAPwHAwjpqWGA-MZLEFkVTqCGU,874
45
45
  account/rpc/__init__.py,sha256=SGF0M_-H0dKh3b1apSX29BotNWAvITYccGQVC0MIjL8,336
46
- account/rpc/auth.py,sha256=MDXXhTlzTRcKB8TQ0OPawvsb0P4EeH_J3ukeSljgytk,17615
46
+ account/rpc/auth.py,sha256=0Y-R5pXIj_aWFyn0U4DKNH8vfuAJGlxhPqWmLHY0Nnk,17698
47
47
  account/rpc/device.py,sha256=lU2BHNPreHV0dDTjAPc7Sc-5m2JP8SiWVqiKuBfV7Fo,2281
48
48
  account/rpc/group.py,sha256=hw7iczZ6W_IrRbx5ZDw6cZ5I_ztqxhtUFJD9WR91_4s,4948
49
49
  account/rpc/member.py,sha256=8XnJX-iri0Om4nc-V2_tDJzfCSzziKLw6dUx9egtEZE,2236
@@ -92,7 +92,7 @@ inbox/models/message.py,sha256=acPm2z0QsucoFFmfzPekehElZm8EMzkcGChX_BpzGLU,3758
92
92
  inbox/models/template.py,sha256=i5vf0vsM1U0251UmVsF61MDCV_c7xt-zdCdx1SiKOG0,1013
93
93
  inbox/rpc.py,sha256=7JXvpXlEGKG7by_NkANPGYLCzagyCnTIGM4rme_htpk,1534
94
94
  inbox/utils/__init__.py,sha256=P_UR2rGK3L0tZNlTN-mf99tpeYM-tLkA18iDKXSSLDM,89
95
- inbox/utils/parsing.py,sha256=y_71dwz8bm3JvF35ol8698XJ36sBF8fQWUrn0sYd2Fs,5597
95
+ inbox/utils/parsing.py,sha256=PE-kyST0DQScSu4o3RaSqEtwZjgyowVe4dT3bYIHAiE,5691
96
96
  inbox/utils/render.py,sha256=Jk_YYY6uztURh0qQfDDZYpOj9awvqkqkAaBmwJIWivU,4543
97
97
  inbox/utils/sending.py,sha256=BKelTZnbkdSLGpjOY6IRTrzj-Hnw2pPZ7RYQGwe-tqk,2179
98
98
  incident/README.md,sha256=4vbZTJj7uUmq8rogYngxqNYjFTlBOujfWUGheLoFKMc,1114
@@ -380,7 +380,7 @@ pushit/utils.py,sha256=IeTCGa-164nmB1jIsK1lu1O1QzUhS3BKfuXHGjCW-ck,2121
380
380
  rest/.gitignore,sha256=TbEvWRMnAiajCTOdhiNrd9eeCAaIjRp9PRjE_VkMM5g,118
381
381
  rest/README.md,sha256=V3ETc-cJu8PZIbKr9xSe_pA4JEUpC8Dhw4bQeVCDJPw,5460
382
382
  rest/RemoteEvents.py,sha256=nL46U7AuxIrlw2JunphR1tsXyqi-ep_gD9CYGpYbNgE,72
383
- rest/__init__.py,sha256=BF5iQVc_58Sj3--bfe7Nv0kMyoAmtLcNU6EnH6vA1bU,122
383
+ rest/__init__.py,sha256=wfYI2fFctsIeYnQP9m01ZTnkw31NpQQDKrhgfS_4Kgw,122
384
384
  rest/arc4.py,sha256=y644IbF1ec--e4cUJ3KEYsewTCITK0gmlwa5mJruFC0,1967
385
385
  rest/cache.py,sha256=1Qg0rkaCJCaVP0-l5hZg2CIblTdeBSlj_0fP6vlKUpU,83
386
386
  rest/crypto/__init__.py,sha256=Tl0U11rgj1eBYqd6OXJ2_XSdNLumW_JkBZnaJqI6Ldw,72
@@ -518,7 +518,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
518
518
  ws4redis/settings.py,sha256=KKq00EwoGnz1yLwCZr5Dfoq2izivmAdsNEEM4EhZwN4,1610
519
519
  ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
520
520
  ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
521
- django_restit-4.2.178.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
522
- django_restit-4.2.178.dist-info/METADATA,sha256=7mIBsuAJDUF-6Mbw7FgAVHoc7zqWDFiIKuLpbbieMZ8,7714
523
- django_restit-4.2.178.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
524
- django_restit-4.2.178.dist-info/RECORD,,
521
+ django_restit-4.2.179.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
522
+ django_restit-4.2.179.dist-info/METADATA,sha256=Pmxj3TIYbIsFJEZzboR6iygMixbAjdnCGvBbqg2eTLA,7714
523
+ django_restit-4.2.179.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
524
+ django_restit-4.2.179.dist-info/RECORD,,
inbox/utils/parsing.py CHANGED
@@ -131,7 +131,7 @@ def toFileObject(attachment):
131
131
  return obj
132
132
 
133
133
 
134
- def parseAddresses(input_string, force_name=False):
134
+ def parseAddresses(input_string, force_name=False, emails_only=False):
135
135
  if input_string is None:
136
136
  return []
137
137
  # Define a regex pattern to capture email addresses
@@ -153,6 +153,8 @@ def parseAddresses(input_string, force_name=False):
153
153
  else:
154
154
  name = None
155
155
  parsed_emails.append(objict(name=name, email=addr, full_email=full_email))
156
+ if emails_only:
157
+ return [email.email for email in parsed_emails]
156
158
  return parsed_emails
157
159
 
158
160
 
@@ -164,4 +166,3 @@ def toString(value):
164
166
  elif isinstance(value, (int, float)):
165
167
  value = str(value)
166
168
  return value
167
-
rest/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from .uberdict import UberDict # noqa: F401
2
2
  from .settings_helper import settings # noqa: F401
3
3
 
4
- __version__ = "4.2.178"
4
+ __version__ = "4.2.179"