phanterpwa 13.12.17__py3-none-any.whl → 13.12.20__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.
- phanterpwa/__init__.py +1 -1
- phanterpwa/backend/decorators.py +4 -2
- phanterpwa/frontend/application.py +1 -1
- phanterpwa/frontend/components/auth_user.py +26 -0
- {phanterpwa-13.12.17.dist-info → phanterpwa-13.12.20.dist-info}/METADATA +1 -1
- {phanterpwa-13.12.17.dist-info → phanterpwa-13.12.20.dist-info}/RECORD +11 -11
- {phanterpwa-13.12.17.dist-info → phanterpwa-13.12.20.dist-info}/LICENSE +0 -0
- {phanterpwa-13.12.17.dist-info → phanterpwa-13.12.20.dist-info}/WHEEL +0 -0
- {phanterpwa-13.12.17.dist-info → phanterpwa-13.12.20.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-13.12.17.dist-info → phanterpwa-13.12.20.dist-info}/entry_points.txt +0 -0
- {phanterpwa-13.12.17.dist-info → phanterpwa-13.12.20.dist-info}/top_level.txt +0 -0
phanterpwa/__init__.py
CHANGED
phanterpwa/backend/decorators.py
CHANGED
|
@@ -406,11 +406,13 @@ def check_url_token(ignore_user_agent=False):
|
|
|
406
406
|
if "user_agent" in token_content:
|
|
407
407
|
if ignore_user_agent:
|
|
408
408
|
self.phanterpwa_url_token_checked = token_content
|
|
409
|
+
q_user = self.DALDatabase(self.DALDatabase.auth_user.id == token_content.get("id_user")).select().first()
|
|
410
|
+
self.phanterpwa_current_user = q_user
|
|
409
411
|
else:
|
|
410
412
|
if token_content['user_agent'] == self.phanterpwa_user_agent:
|
|
413
|
+
q_user = self.DALDatabase(self.DALDatabase.auth_user.id == token_content.get("id_user")).select().first()
|
|
414
|
+
self.phanterpwa_current_user = q_user
|
|
411
415
|
self.phanterpwa_url_token_checked = token_content
|
|
412
|
-
|
|
413
|
-
|
|
414
416
|
if self.phanterpwa_url_token_checked:
|
|
415
417
|
return f(self, *args, **kargs)
|
|
416
418
|
else:
|
|
@@ -787,7 +787,7 @@ class PhanterPWA():
|
|
|
787
787
|
def get_consolided_way():
|
|
788
788
|
current_way = sessionStorage.getItem("current_way")
|
|
789
789
|
if current_way is None or current_way is js_undefined or current_way is "lock":
|
|
790
|
-
current_way =
|
|
790
|
+
current_way = self.default_way
|
|
791
791
|
return current_way
|
|
792
792
|
|
|
793
793
|
def get_current_way(self):
|
|
@@ -1668,6 +1668,19 @@ class AlertActivationAccount(top_slide.TopSlide):
|
|
|
1668
1668
|
'click.modal_submit_activation_new_code',
|
|
1669
1669
|
lambda: self.request_new_activation_code_to_send_to_email()
|
|
1670
1670
|
)
|
|
1671
|
+
jQuery(
|
|
1672
|
+
"#form-activation"
|
|
1673
|
+
).off(
|
|
1674
|
+
"keydown.form-activation"
|
|
1675
|
+
).on(
|
|
1676
|
+
"keydown.form-activation",
|
|
1677
|
+
self._on_press_key_enter
|
|
1678
|
+
)
|
|
1679
|
+
|
|
1680
|
+
def _on_press_key_enter(self, event):
|
|
1681
|
+
if event.keyCode == 13:
|
|
1682
|
+
event.preventDefault()
|
|
1683
|
+
self.submit()
|
|
1671
1684
|
|
|
1672
1685
|
def _process_alert_content(self):
|
|
1673
1686
|
email = window.PhanterPWA.get_auth_user().email
|
|
@@ -3223,6 +3236,19 @@ class TwoFactor(gatehandler.Handler):
|
|
|
3223
3236
|
"click.confirmation-code_button_save",
|
|
3224
3237
|
self.submit
|
|
3225
3238
|
)
|
|
3239
|
+
jQuery(
|
|
3240
|
+
"#form-confirmation-code"
|
|
3241
|
+
).off(
|
|
3242
|
+
"keydown.form-confirmation-code"
|
|
3243
|
+
).on(
|
|
3244
|
+
"keydown.form-confirmation-code",
|
|
3245
|
+
self._on_press_key_enter
|
|
3246
|
+
)
|
|
3247
|
+
|
|
3248
|
+
def _on_press_key_enter(self, event):
|
|
3249
|
+
if event.keyCode == 13:
|
|
3250
|
+
event.preventDefault()
|
|
3251
|
+
self.submit()
|
|
3226
3252
|
|
|
3227
3253
|
def reload(self):
|
|
3228
3254
|
self.start()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
phanterpwa/__init__.py,sha256=
|
|
1
|
+
phanterpwa/__init__.py,sha256=xYqKlZdvBlBr9Ns6EkCxOSvBcg-w5ULqEjnhCo2V_XQ,398
|
|
2
2
|
phanterpwa/__main__.py,sha256=1vSHtv6-sgAgpZiklf9bwarXX1b-fmKx1rjwJw4h78o,4017
|
|
3
3
|
phanterpwa/compiler.py,sha256=Je3qtVO_cZ69_PPWcXKyBgnRfQ-Ev-zkZ3UTN-ddOTQ,47478
|
|
4
4
|
phanterpwa/configer.py,sha256=O0IO5rf-hwFNdBjcz94OF-fqXKTWbqPElTsfS5V2beY,26327
|
|
@@ -11,7 +11,7 @@ phanterpwa/tools.py,sha256=H1VfJe9c3qaeR3KYpKz0KHHx6j7fRaa_kBaZsCiawxs,45683
|
|
|
11
11
|
phanterpwa/xmlconstructor.py,sha256=DMtc9BXI2NMGGmLszZXh2A63Iv0D1qgoWtn0aKyrmoo,162695
|
|
12
12
|
phanterpwa/backend/__init__.py,sha256=zB8rm2I9O3f448YsuaupgBlAoqZAiVM5vEoWnOOGvdw,68
|
|
13
13
|
phanterpwa/backend/dataforms.py,sha256=J4WcuesauKw1WT4uG7IFIpDY_7KemZMZgCd-iz8bDMU,62992
|
|
14
|
-
phanterpwa/backend/decorators.py,sha256=
|
|
14
|
+
phanterpwa/backend/decorators.py,sha256=cNgnPDGj1n47gKxQjcpN7z4bbzyj6lTmqXEGTUDt_og,55413
|
|
15
15
|
phanterpwa/backend/security.py,sha256=USPky7nqTKASAN60yYs7-NnoR82LMZlf9aGlfz1QbXM,1300
|
|
16
16
|
phanterpwa/backend/pydal/__init__.py,sha256=lpPDHcS9anJ5ceRSW9fBVuAgKK5qtjSoMsVjp3_nCdw,55
|
|
17
17
|
phanterpwa/backend/pydal/auth.py,sha256=-o9LPKWFgHJQLxMiiCgZo4w0_gOKxJ_tDMAB3PttQAs,8365
|
|
@@ -83,7 +83,7 @@ phanterpwa/components/preloaders/square.sass,sha256=TOsh9muP4zkYLUJcw4i1LeRs60Nr
|
|
|
83
83
|
phanterpwa/components/preloaders/squares.py,sha256=TaReDPQZV8ntlODAg6Y5xSQVTe7DTE6HZvmtDMujV24,828
|
|
84
84
|
phanterpwa/components/preloaders/squares.sass,sha256=kH1I89qEfmbvYxCtKFVNcxP5bWIjnqbheXVnyGF0VNo,3862
|
|
85
85
|
phanterpwa/frontend/__init__.py,sha256=KjlnaINX8_d_4AFmWE_ZRzG8_rcxJXqUcf-FVy3fv_E,142
|
|
86
|
-
phanterpwa/frontend/application.py,sha256=
|
|
86
|
+
phanterpwa/frontend/application.py,sha256=6PQ7y9TuIeV9KNnVokb3uMCgpHlaD01awTa2WNA6r1Q,56787
|
|
87
87
|
phanterpwa/frontend/decorators.py,sha256=Qrwqnk8-4N5xZCpDrcya6H1b5yFEHhUMOWT3H63p4KQ,4042
|
|
88
88
|
phanterpwa/frontend/fmasks.py,sha256=HU-H-RfWanHrzAeka3kGP6Po6SugJfNKKItdzJoCV6s,31267
|
|
89
89
|
phanterpwa/frontend/forms.py,sha256=jYo3TAJTpe9XUAVjxoT9Gufn-vWWzFTeElXBvwZ_UH0,42117
|
|
@@ -100,7 +100,7 @@ phanterpwa/frontend/validations.py,sha256=_9ors0oNyqvdOxI-2uwA-8JvAt-YPg_i6CZS7U
|
|
|
100
100
|
phanterpwa/frontend/websocket.py,sha256=AqM1HiWTjHWLKXYXjzgEsNROgKKTZwfUgCKmpIGpIJQ,4381
|
|
101
101
|
phanterpwa/frontend/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
102
|
phanterpwa/frontend/components/admin.py,sha256=ioPqaKRJ2npJYiMJL0KrLdcG6XA7W7tLTj-4l7Upyr0,69689
|
|
103
|
-
phanterpwa/frontend/components/auth_user.py,sha256=
|
|
103
|
+
phanterpwa/frontend/components/auth_user.py,sha256=sjVhzyl22a_1RRxY3Zf1OH5IWlOU8JRejK9whal1JAk,172952
|
|
104
104
|
phanterpwa/frontend/components/datetimepicker.py,sha256=3di9qAg1FEhaUeayQTzq3QEuwHxfuhYT3fWTjFkhW7U,57394
|
|
105
105
|
phanterpwa/frontend/components/events.py,sha256=w2Si1G5x-R8oy7bcETFrZHjIkdFC1jXV-SxVsEBKV-Q,3726
|
|
106
106
|
phanterpwa/frontend/components/gallery.py,sha256=4iUsqqfyfOf0Fl8Wasg7R9IjvQrbWMUMzjUx9noXPs4,34075
|
|
@@ -435,10 +435,10 @@ phanterpwa/usual_sass/preloaders/indefined_text.sass,sha256=z4JuUtBrzoqH3HuNFXvN
|
|
|
435
435
|
phanterpwa/usual_sass/preloaders/run_points.sass,sha256=EYl93ljfgAc-ZLJ0VScrCoIlHP7Nr6NLdxj1zk2wm_E,3367
|
|
436
436
|
phanterpwa/usual_sass/preloaders/square.sass,sha256=TOsh9muP4zkYLUJcw4i1LeRs60NrtgRWBk_1oMt2_58,1348
|
|
437
437
|
phanterpwa/usual_sass/preloaders/squares.sass,sha256=kH1I89qEfmbvYxCtKFVNcxP5bWIjnqbheXVnyGF0VNo,3862
|
|
438
|
-
phanterpwa-13.12.
|
|
439
|
-
phanterpwa-13.12.
|
|
440
|
-
phanterpwa-13.12.
|
|
441
|
-
phanterpwa-13.12.
|
|
442
|
-
phanterpwa-13.12.
|
|
443
|
-
phanterpwa-13.12.
|
|
444
|
-
phanterpwa-13.12.
|
|
438
|
+
phanterpwa-13.12.20.dist-info/LICENSE,sha256=lGEW1PRSZOkug2-d0IJgryCjqt6zhxN5x9pFgy3lx2E,1087
|
|
439
|
+
phanterpwa-13.12.20.dist-info/METADATA,sha256=5ktezVAcl36JksCuXabJd0XKID1292Lv41svlmBEWq4,1920
|
|
440
|
+
phanterpwa-13.12.20.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
441
|
+
phanterpwa-13.12.20.dist-info/dependency_links.txt,sha256=Pslekmz-4l1SpBO0x2aYkYZPCScmbrB9HUq1YvXYUzM,40
|
|
442
|
+
phanterpwa-13.12.20.dist-info/entry_points.txt,sha256=JQHjrnz1VN-sn6K96fymxnePAW8xSJqwwjbI89QaZuM,57
|
|
443
|
+
phanterpwa-13.12.20.dist-info/top_level.txt,sha256=nF1WJ8AByxBv3bLKp3xySR2l2Twrj5n5n7C404lULSk,5319
|
|
444
|
+
phanterpwa-13.12.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|