grandlyon: add new category types to copy

This commit is contained in:
Frédéric Péters 2022-11-21 18:09:25 +01:00
parent 870de1d254
commit f7892e95bd
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ def copy(orig, dest, dest_city):
fd.write(src)
fd.close()
for object_type in ('carddefs', 'formdefs', 'workflows', 'categories', 'datasources', 'models', 'wscalls'):
for object_type in ('carddefs', 'formdefs', 'workflows', 'categories', 'datasources', 'models', 'wscalls',
'carddef_categories', 'workflow_categories', 'block_categories', 'mail_template_categories',
'data_source_categories'):
if os.path.exists('/var/lib/wcs/%s' % orig_site):
orig_base_dir = '/var/lib/wcs/%s' % orig_site
elif os.path.exists('/var/lib/wcs/tenants/%s' % orig_site):