From 813fe13e24ce0bad9253cf0fad8260ad51404215 Mon Sep 17 00:00:00 2001 From: Mark de Bruijn Date: Fri, 6 Apr 2018 13:09:15 +0200 Subject: [PATCH] webapp_switch_locale.py: fix deprecated "set_value" --- webapp_switch_locale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp_switch_locale.py b/webapp_switch_locale.py index 31870f7..d3ad1ba 100644 --- a/webapp_switch_locale.py +++ b/webapp_switch_locale.py @@ -28,7 +28,7 @@ def main(): if options.locale: print 'Setting locale to: %s' % options.locale settings['settings']['zarafa']['v1']['main']['language'] = options.locale - user.store.prop(PR_EC_WEBACCESS_SETTINGS_JSON).set_value(json.dumps(settings)) + user.store.create_prop(PR_EC_WEBACCESS_SETTINGS_JSON, json.dumps(settings)) if __name__ == "__main__":