phanterpwa 14.0.2__py3-none-any.whl → 14.0.4__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/pydal/auth.py +1 -1
- phanterpwa/tools.py +11 -1
- {phanterpwa-14.0.2.dist-info → phanterpwa-14.0.4.dist-info}/METADATA +1 -1
- {phanterpwa-14.0.2.dist-info → phanterpwa-14.0.4.dist-info}/RECORD +10 -10
- {phanterpwa-14.0.2.dist-info → phanterpwa-14.0.4.dist-info}/LICENSE +0 -0
- {phanterpwa-14.0.2.dist-info → phanterpwa-14.0.4.dist-info}/WHEEL +0 -0
- {phanterpwa-14.0.2.dist-info → phanterpwa-14.0.4.dist-info}/dependency_links.txt +0 -0
- {phanterpwa-14.0.2.dist-info → phanterpwa-14.0.4.dist-info}/entry_points.txt +0 -0
- {phanterpwa-14.0.2.dist-info → phanterpwa-14.0.4.dist-info}/top_level.txt +0 -0
phanterpwa/__init__.py
CHANGED
phanterpwa/backend/pydal/auth.py
CHANGED
@@ -31,7 +31,7 @@ class AuthTables():
|
|
31
31
|
'group': 'group1',
|
32
32
|
'_class': 'p-col w1p100 w4p70 e-float_right'
|
33
33
|
}),
|
34
|
-
Field('date_created', 'datetime', default=datetime.now(), requires=IS_EMPTY_OR(IS_DATETIME())),
|
34
|
+
Field('date_created', 'datetime', default=datetime.now(), index=True, requires=IS_EMPTY_OR(IS_DATETIME())),
|
35
35
|
Field('email_activated', 'boolean', index=True, default=False),
|
36
36
|
Field('fone_number', 'string', phanterpwa={
|
37
37
|
'out_of_form': True
|
phanterpwa/tools.py
CHANGED
@@ -1058,12 +1058,13 @@ def normalize_names(name, not_captilize=[]):
|
|
1058
1058
|
|
1059
1059
|
|
1060
1060
|
class WatchingFiles():
|
1061
|
-
def __init__(self, path_monitoring, path_destiny, ignore_paths=["__pycache__"]):
|
1061
|
+
def __init__(self, path_monitoring, path_destiny, ignore_paths=["__pycache__"], exec_after=None):
|
1062
1062
|
self.path_monitoring = path_monitoring
|
1063
1063
|
self.path_destiny = path_destiny
|
1064
1064
|
self.ignore_paths = ignore_paths
|
1065
1065
|
self._dirs = dict()
|
1066
1066
|
self._files = dict()
|
1067
|
+
self.exec_after = exec_after
|
1067
1068
|
self._create_mtime_list()
|
1068
1069
|
|
1069
1070
|
@property
|
@@ -1136,12 +1137,14 @@ class WatchingFiles():
|
|
1136
1137
|
|
1137
1138
|
def monitoring(self):
|
1138
1139
|
print("Starting WatchingFiles...")
|
1140
|
+
self._has_change = False
|
1139
1141
|
while True:
|
1140
1142
|
self.sincronize()
|
1141
1143
|
|
1142
1144
|
def sincronize(self):
|
1143
1145
|
dirs_delete = dict(self._dirs)
|
1144
1146
|
files_delete = dict(self._files)
|
1147
|
+
change_local = True
|
1145
1148
|
for x in os.walk(self.path_monitoring):
|
1146
1149
|
p = PurePath(x[0])
|
1147
1150
|
if not set(p.parts).intersection(set(self.ignore_paths)):
|
@@ -1151,6 +1154,7 @@ class WatchingFiles():
|
|
1151
1154
|
del dirs_delete[x[0]]
|
1152
1155
|
if not os.path.isdir(df):
|
1153
1156
|
os.makedirs(df, exist_ok=True)
|
1157
|
+
change_local = True
|
1154
1158
|
print("Creating Destiny Dirs: {0}".format(df))
|
1155
1159
|
for y in x[2]:
|
1156
1160
|
f = os.path.normpath(os.path.join(x[0], y))
|
@@ -1162,6 +1166,7 @@ class WatchingFiles():
|
|
1162
1166
|
f
|
1163
1167
|
] = [os.path.getmtime(f), d]
|
1164
1168
|
print("New File: {0}\nCoping {0} to {1}".format(f, d))
|
1169
|
+
change_local = True
|
1165
1170
|
shutil.copy2(f, d)
|
1166
1171
|
else:
|
1167
1172
|
if self._files[f][0] != os.path.getmtime(f):
|
@@ -1169,8 +1174,10 @@ class WatchingFiles():
|
|
1169
1174
|
f
|
1170
1175
|
] = [os.path.getmtime(f), d]
|
1171
1176
|
print("Was Modify: {0}\nCoping {0} to {1}".format(f, d))
|
1177
|
+
change_local = True
|
1172
1178
|
shutil.copy2(f, d)
|
1173
1179
|
elif not os.path.isfile(d):
|
1180
|
+
change_local = True
|
1174
1181
|
shutil.copy2(f, d)
|
1175
1182
|
print("Not Found: {1}\nCoping {0} to {1}".format(f, d))
|
1176
1183
|
if dirs_delete:
|
@@ -1212,4 +1219,7 @@ class WatchingFiles():
|
|
1212
1219
|
else:
|
1213
1220
|
del files_delete[ff]
|
1214
1221
|
del self._files[ff]
|
1222
|
+
if change_local and callable(self.exec_after):
|
1223
|
+
self.exec_after(self)
|
1224
|
+
change_local = False
|
1215
1225
|
time.sleep(1)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
phanterpwa/__init__.py,sha256=
|
1
|
+
phanterpwa/__init__.py,sha256=gVClGsvi4tRX_3_qc9y_Pc10dwH-utDBl_s1oDZw6bw,396
|
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
|
@@ -7,14 +7,14 @@ phanterpwa/mail.py,sha256=YrsiIQY_SpqySIc7mi6MfyY881DIsoYAJ5dPAz8vorE,5741
|
|
7
7
|
phanterpwa/reversexml.py,sha256=YJeI8VuzEPw0D2z0Cz-HLt2n27WyJawZh6HRNZX5Ujg,10764
|
8
8
|
phanterpwa/server.py,sha256=RmpH06AxK8OeNWrsjm30IBZCw7-h8ajwIkbVad0UXFU,15169
|
9
9
|
phanterpwa/sms.py,sha256=XUULyDSk5gPjBqupchIcaGv-C6kX66XxrXpmzfnSp_A,1313
|
10
|
-
phanterpwa/tools.py,sha256=
|
10
|
+
phanterpwa/tools.py,sha256=X_R_pWIegts8rNmDwVI_MmJ9PyXr5H64IrB2jXX9twc,46596
|
11
11
|
phanterpwa/xmlconstructor.py,sha256=DMtc9BXI2NMGGmLszZXh2A63Iv0D1qgoWtn0aKyrmoo,162695
|
12
12
|
phanterpwa/backend/__init__.py,sha256=zB8rm2I9O3f448YsuaupgBlAoqZAiVM5vEoWnOOGvdw,68
|
13
13
|
phanterpwa/backend/dataforms.py,sha256=HwR8D-4vBNXdN5MSpZmjelo-Az92lVvOTIzpbHnPpsg,64543
|
14
14
|
phanterpwa/backend/decorators.py,sha256=gPqFjUe8BCci59hBv72j2wvKZB3L5HLZIE-3ESA2wLU,56094
|
15
15
|
phanterpwa/backend/security.py,sha256=USPky7nqTKASAN60yYs7-NnoR82LMZlf9aGlfz1QbXM,1300
|
16
16
|
phanterpwa/backend/pydal/__init__.py,sha256=lpPDHcS9anJ5ceRSW9fBVuAgKK5qtjSoMsVjp3_nCdw,55
|
17
|
-
phanterpwa/backend/pydal/auth.py,sha256=
|
17
|
+
phanterpwa/backend/pydal/auth.py,sha256=fvRI4vyjjl0ZBuCGjcinp4mVd8sU4Wd1skLoHX_ter8,8606
|
18
18
|
phanterpwa/backend/pydal/cas.py,sha256=PJvHZdXu4JQM0BAEkYSMTw-_Zc8zrlXR200GTA869kg,1581
|
19
19
|
phanterpwa/backend/pydal/credentials.py,sha256=CInkGkZtJ1c_3qiASDaMXSgwQSlb14CrYOg2WG8RjiA,2283
|
20
20
|
phanterpwa/backend/pydal/extra_validations.py,sha256=1FlOZhUuYg4aybL4EwSzH3zWUXbGtOwxxfVxK-qjHkM,1919
|
@@ -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-14.0.
|
439
|
-
phanterpwa-14.0.
|
440
|
-
phanterpwa-14.0.
|
441
|
-
phanterpwa-14.0.
|
442
|
-
phanterpwa-14.0.
|
443
|
-
phanterpwa-14.0.
|
444
|
-
phanterpwa-14.0.
|
438
|
+
phanterpwa-14.0.4.dist-info/LICENSE,sha256=lGEW1PRSZOkug2-d0IJgryCjqt6zhxN5x9pFgy3lx2E,1087
|
439
|
+
phanterpwa-14.0.4.dist-info/METADATA,sha256=GITPq9RTDnBt8ObDb___kvPYzIfK0c_f4nEOOa6lpAE,1938
|
440
|
+
phanterpwa-14.0.4.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
441
|
+
phanterpwa-14.0.4.dist-info/dependency_links.txt,sha256=Pslekmz-4l1SpBO0x2aYkYZPCScmbrB9HUq1YvXYUzM,40
|
442
|
+
phanterpwa-14.0.4.dist-info/entry_points.txt,sha256=siJH2lFXIdsUBDRgcXV4blOb2_iku1vcbqxJ-trIQrw,56
|
443
|
+
phanterpwa-14.0.4.dist-info/top_level.txt,sha256=nF1WJ8AByxBv3bLKp3xySR2l2Twrj5n5n7C404lULSk,5319
|
444
|
+
phanterpwa-14.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|