Commit ce28cb5e authored by Alain Leufroy's avatar Alain Leufroy
Browse files

3.19 compatibility (closes #3825613)

... with backward compatibility with previous version
parent 1fa62e65d166
......@@ -10,7 +10,11 @@ def _update_postgis_metadata(session, rtype, subject, srid, geom_type, coord_dim
""" This fonction update the postgis metadata columns
"""
# this is specific to postgres
if session.vreg.config.sources()['system']['db-driver'] != 'postgres':
try:
dbdriver = session.vreg.config.system_source_config['db-driver']
except AttributeError: # cw < 3.19.0
dbdriver = session.vreg.config.sources()['system']['db-driver']
if dbdriver != 'postgres':
return # hack waiting for a better solution
tn = 'cw_%s' % subject.lower()
gc = 'cw_%s' % rtype.lower()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment