misc: ignore .max_id in zip export/import (#53225)
This commit is contained in:
parent
5b45fe4681
commit
591cb8aa2e
|
@ -1042,7 +1042,7 @@ class SettingsDirectory(QommonSettingsDirectory):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
continue
|
continue
|
||||||
for f in os.listdir(path):
|
for f in os.listdir(path):
|
||||||
if f == '.indexes':
|
if f in ('.indexes', '.max_id'):
|
||||||
continue
|
continue
|
||||||
z.write(os.path.join(path, f), os.path.join(d, f))
|
z.write(os.path.join(path, f), os.path.join(d, f))
|
||||||
if 'datasources' in self.dirs:
|
if 'datasources' in self.dirs:
|
||||||
|
|
|
@ -203,7 +203,7 @@ class WcsPublisher(QommonPublisher):
|
||||||
return rv
|
return rv
|
||||||
|
|
||||||
for f in z.namelist():
|
for f in z.namelist():
|
||||||
if '.indexes' in f:
|
if f in ('.indexes', '.max_id'):
|
||||||
continue
|
continue
|
||||||
if os.path.dirname(f) in (
|
if os.path.dirname(f) in (
|
||||||
'formdefs_xml',
|
'formdefs_xml',
|
||||||
|
|
Loading…
Reference in New Issue