0001-check_hobos-reindex-formdata-after-domain-name-chang.patch
wcs/ctl/check_hobos.py | ||
---|---|---|
29 | 29 |
from wcs.admin.settings import UserFieldsFormDef |
30 | 30 |
from wcs.fields import DateField, EmailField, StringField |
31 | 31 |
from wcs.qommon import force_str |
32 |
from wcs.sql import get_connection_and_cursor, set_reindex |
|
32 | 33 | |
33 | 34 |
from ..qommon import misc |
34 | 35 |
from ..qommon.ctl import Command, make_option |
... | ... | |
153 | 154 |
print('tenant directory not found') |
154 | 155 |
return |
155 | 156 |
pub.set_tenant_by_hostname(self.get_instance_path(service.get('base_url'))) |
157 |
conn, cur = get_connection_and_cursor() |
|
158 |
set_reindex('formdata', 'needed', conn=conn, cur=cur) |
|
156 | 159 |
force_spconfig = True |
157 | 160 |
break |
158 | 161 |
except UnknownTenantError: |
159 |
- |