phanterpwa 13.30.0__py3-none-any.whl → 13.31.1__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/request_handlers/credentials.py +19 -22
- phanterpwa/gallery/integrationDAL.py +1 -1
- phanterpwa/server.py +1 -1
- {phanterpwa-13.30.0.dist-info → phanterpwa-13.31.1.dist-info}/METADATA +1 -1
- {phanterpwa-13.30.0.dist-info → phanterpwa-13.31.1.dist-info}/RECORD +11 -11
- {phanterpwa-13.30.0.dist-info → phanterpwa-13.31.1.dist-info}/LICENSE +0 -0
- {phanterpwa-13.30.0.dist-info → phanterpwa-13.31.1.dist-info}/WHEEL +0 -0
- {phanterpwa-13.30.0.dist-info → phanterpwa-13.31.1.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-13.30.0.dist-info → phanterpwa-13.31.1.dist-info}/entry_points.txt +0 -0
- {phanterpwa-13.30.0.dist-info → phanterpwa-13.31.1.dist-info}/top_level.txt +0 -0
phanterpwa/__init__.py
CHANGED
|
@@ -93,7 +93,23 @@ class SignClient(web.RequestHandler):
|
|
|
93
93
|
|
|
94
94
|
@check_application()
|
|
95
95
|
async def get(self, *args, **kargs):
|
|
96
|
-
|
|
96
|
+
expire_date = datetime.now() - timedelta(seconds=self.projectConfig['BACKEND'][self.app_name]['default_time_client_token_expire'])
|
|
97
|
+
anonymous_expire_date = datetime.now() - timedelta(seconds=self.projectConfig['BACKEND'][self.app_name]['default_time_csrf_token_expire'])
|
|
98
|
+
deactived_user_expire_date = datetime.now() - timedelta(seconds=self.projectConfig['BACKEND'][self.app_name]['default_time_user_token_expire_remember_me'])
|
|
99
|
+
str_expire_date = expire_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
100
|
+
str_anonymous_expire_date = anonymous_expire_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
101
|
+
self.DALDatabase(
|
|
102
|
+
(self.DALDatabase.client.date_created < str_expire_date)
|
|
103
|
+
).delete()
|
|
104
|
+
self.DALDatabase(
|
|
105
|
+
(self.DALDatabase.client.auth_user == None)
|
|
106
|
+
& (self.DALDatabase.client.date_created < str_anonymous_expire_date)
|
|
107
|
+
).delete()
|
|
108
|
+
self.DALDatabase(
|
|
109
|
+
(self.DALDatabase.auth_user.activated == False)
|
|
110
|
+
& ((self.DALDatabase.auth_user.date_created < deactived_user_expire_date) | (self.DALDatabase.auth_user.date_created == None))
|
|
111
|
+
).delete()
|
|
112
|
+
|
|
97
113
|
self.phanterpwa_client_token = self.request.headers.get('phanterpwa-client-token')
|
|
98
114
|
self.phanterpwa_authorization = self.request.headers.get('phanterpwa-authorization')
|
|
99
115
|
t_client = Serialize(
|
|
@@ -378,27 +394,8 @@ class SignClient(web.RequestHandler):
|
|
|
378
394
|
self.set_status(200)
|
|
379
395
|
return self.write({"status": "OK"})
|
|
380
396
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
global CLEANUP_TIME
|
|
384
|
-
expire_date = datetime.now() - timedelta(seconds=self.projectConfig['BACKEND'][self.app_name]['default_time_client_token_expire'])
|
|
385
|
-
anonymous_expire_date = datetime.now() - timedelta(seconds=self.projectConfig['BACKEND'][self.app_name]['default_time_csrf_token_expire'])
|
|
386
|
-
deactived_user_expire_date = datetime.now() - timedelta(seconds=self.projectConfig['BACKEND'][self.app_name]['default_time_user_token_expire_remember_me'])
|
|
387
|
-
str_expire_date = expire_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
388
|
-
str_anonymous_expire_date = anonymous_expire_date.strftime('%Y-%m-%d %H:%M:%S')
|
|
389
|
-
if CLEANUP_TIME is None or CLEANUP_TIME > (datetime.now() - timedelta(60 * 60 * 12)):
|
|
390
|
-
self.DALDatabase(
|
|
391
|
-
(self.DALDatabase.client.date_created < str_expire_date)
|
|
392
|
-
).delete()
|
|
393
|
-
self.DALDatabase(
|
|
394
|
-
(self.DALDatabase.client.auth_user == None)
|
|
395
|
-
& (self.DALDatabase.client.date_created < str_anonymous_expire_date)
|
|
396
|
-
).delete()
|
|
397
|
-
self.DALDatabase(
|
|
398
|
-
(self.DALDatabase.auth_user.activated == False)
|
|
399
|
-
& ((self.DALDatabase.auth_user.date_created < deactived_user_expire_date) | (self.DALDatabase.auth_user.date_created == None))
|
|
400
|
-
).delete()
|
|
401
|
-
CLEANUP_TIME = datetime.now()
|
|
397
|
+
|
|
398
|
+
|
|
402
399
|
|
|
403
400
|
|
|
404
401
|
class SignForms(web.RequestHandler):
|
|
@@ -41,7 +41,7 @@ class PhanterpwaGalleryUserImage():
|
|
|
41
41
|
q_image = self.db(
|
|
42
42
|
(self.db.auth_user_phanterpwagallery.auth_user == self.id_user) &
|
|
43
43
|
(self.db.auth_user_phanterpwagallery.subfolder == 'profile') &
|
|
44
|
-
(self.db.auth_user_phanterpwagallery.phanterpwagallery)).select(
|
|
44
|
+
(self.db.auth_user_phanterpwagallery.phanterpwagallery == self.db.phanterpwagallery.id)).select(
|
|
45
45
|
self.db.auth_user_phanterpwagallery.id).last()
|
|
46
46
|
if q_image:
|
|
47
47
|
return q_image.id
|
phanterpwa/server.py
CHANGED
|
@@ -76,7 +76,7 @@ class PhanterPWATornado(object):
|
|
|
76
76
|
print(self.projectPath)
|
|
77
77
|
|
|
78
78
|
if self.apps_ports:
|
|
79
|
-
self.cpu_number = int(self.projectConfig["PROJECT"].get('cpu_number',
|
|
79
|
+
self.cpu_number = int(self.projectConfig["PROJECT"].get('cpu_number', 1))
|
|
80
80
|
if os.name == "nt":
|
|
81
81
|
self.cpu_number = 1
|
|
82
82
|
needs_fork = self.cpu_number != 1 and self.cpu_number > -1
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
phanterpwa/__init__.py,sha256=
|
|
1
|
+
phanterpwa/__init__.py,sha256=Pbo5UhXfk3Y4YrdpezVkSPt9qDDpdS2o5_zz8MSNmH4,397
|
|
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=PFO_nVy9r6yt5iDso1amDIR0Ge2UYYK3h-ae9M0Ezyk,26359
|
|
5
5
|
phanterpwa/helpers.py,sha256=gUoSd6OeMtA08jwFMrOCsuou58nwech-aGdiPSCX9GI,12138
|
|
6
6
|
phanterpwa/mail.py,sha256=YrsiIQY_SpqySIc7mi6MfyY881DIsoYAJ5dPAz8vorE,5741
|
|
7
7
|
phanterpwa/reversexml.py,sha256=YJeI8VuzEPw0D2z0Cz-HLt2n27WyJawZh6HRNZX5Ujg,10764
|
|
8
|
-
phanterpwa/server.py,sha256=
|
|
8
|
+
phanterpwa/server.py,sha256=tzD0YZ05b0UodXZQDiVofLwEN9mZ-5pCT3fsFhwDQrY,13321
|
|
9
9
|
phanterpwa/sms.py,sha256=XUULyDSk5gPjBqupchIcaGv-C6kX66XxrXpmzfnSp_A,1313
|
|
10
10
|
phanterpwa/tools.py,sha256=SKwqx_suix-b1DP72a7z98jlnSWDmtGNWgCQq_ogB1I,46173
|
|
11
11
|
phanterpwa/xmlconstructor.py,sha256=DMtc9BXI2NMGGmLszZXh2A63Iv0D1qgoWtn0aKyrmoo,162695
|
|
@@ -24,7 +24,7 @@ phanterpwa/backend/request_handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
|
|
|
24
24
|
phanterpwa/backend/request_handlers/admin.py,sha256=QnpoCTMRBuviSCdB84G0pUb13kIg6ky8Wv4DEVB7tRQ,63978
|
|
25
25
|
phanterpwa/backend/request_handlers/auth.py,sha256=epJ2ura3u6YDKNRmvyYGR7FzF1nrgwTpneibP0z9zzw,177284
|
|
26
26
|
phanterpwa/backend/request_handlers/cas.py,sha256=TeeQaodcHVkhu-cUqesh9NeAuo0oXylzcPXpQ9wG6H4,24996
|
|
27
|
-
phanterpwa/backend/request_handlers/credentials.py,sha256=
|
|
27
|
+
phanterpwa/backend/request_handlers/credentials.py,sha256=OvLnVHixJSwBYUj-GRLEmeO21Z-sG1T4htRzlsQmk3s,51366
|
|
28
28
|
phanterpwa/backend/request_handlers/errors.py,sha256=x3SMdpkO4mxaSRZZQQxtH1zUFh47C06kssfI4CoPokc,4472
|
|
29
29
|
phanterpwa/backend/request_handlers/i18n_server.py,sha256=p3LQxOdcLHIjgaFs4wO1V2_7gKpfcDT7pDPa7m0-UbQ,3205
|
|
30
30
|
phanterpwa/backend/request_handlers/internal_messages.py,sha256=w_u3NYw0KZfuCIS8tHJhV12tj_UA0_aBekk22nR3oCc,17382
|
|
@@ -113,7 +113,7 @@ phanterpwa/frontend/components/widgets.py,sha256=qPtICSSpoaCL8S2bgQC8Z1RoVea_8EW
|
|
|
113
113
|
phanterpwa/frontend/plugins/client.py,sha256=0x1HmGq6-WAap9RGl2szQj1GXClyGVtnznuYMwpUdb8,27481
|
|
114
114
|
phanterpwa/gallery/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
115
115
|
phanterpwa/gallery/cutter.py,sha256=0-VnFa3aQ5XgNmA4P3BsL-_04IwkjrgHImKIrL3qViM,7789
|
|
116
|
-
phanterpwa/gallery/integrationDAL.py,sha256=
|
|
116
|
+
phanterpwa/gallery/integrationDAL.py,sha256=Mik9BtkFD7fR_RngJh-srMMDwmQxd5idierQYCcucDI,11711
|
|
117
117
|
phanterpwa/i18n/__init__.py,sha256=Xetm9mg4Kll_YiRw8CPc_FhP_B-yWp6q4aQMj-hsloE,8670
|
|
118
118
|
phanterpwa/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
119
119
|
phanterpwa/interface/admin_tk.py,sha256=Wlpqx24e-GFXmYvP55gl_v2PXOU1zoEkP6Fks8tb2Jw,7015
|
|
@@ -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.
|
|
439
|
-
phanterpwa-13.
|
|
440
|
-
phanterpwa-13.
|
|
441
|
-
phanterpwa-13.
|
|
442
|
-
phanterpwa-13.
|
|
443
|
-
phanterpwa-13.
|
|
444
|
-
phanterpwa-13.
|
|
438
|
+
phanterpwa-13.31.1.dist-info/LICENSE,sha256=lGEW1PRSZOkug2-d0IJgryCjqt6zhxN5x9pFgy3lx2E,1087
|
|
439
|
+
phanterpwa-13.31.1.dist-info/METADATA,sha256=Se7S1ncHlrMvSxTFO8yogVv2P6o7PbLczvKGqVmeJbk,1939
|
|
440
|
+
phanterpwa-13.31.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
441
|
+
phanterpwa-13.31.1.dist-info/dependency_links.txt,sha256=Pslekmz-4l1SpBO0x2aYkYZPCScmbrB9HUq1YvXYUzM,40
|
|
442
|
+
phanterpwa-13.31.1.dist-info/entry_points.txt,sha256=siJH2lFXIdsUBDRgcXV4blOb2_iku1vcbqxJ-trIQrw,56
|
|
443
|
+
phanterpwa-13.31.1.dist-info/top_level.txt,sha256=nF1WJ8AByxBv3bLKp3xySR2l2Twrj5n5n7C404lULSk,5319
|
|
444
|
+
phanterpwa-13.31.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|