Merge pull request #2 in KSC/webapp-tools from fix_setvalue_bug to master

* commit '78dfb44739ad2994f0bdaf7dfd7469235b84a443':
  Fix set value bug
This commit is contained in:
Robin van Genderen 2018-03-05 16:05:42 +01:00
commit 71fb9e01a3

View File

@ -43,7 +43,7 @@ def main():
data = json.load(data_file) data = json.load(data_file)
print data print data
user.store.prop(PR_EC_WEBACCESS_SETTINGS_JSON).set_value(json.dumps(data)) user.store.create_prop(PR_EC_WEBACCESS_SETTINGS_JSON, json.dumps(data))
if options.remove: if options.remove:
user.store.delete(user.store.prop('PR_EC_WEBACCESS_SETTINGS_JSON')) user.store.delete(user.store.prop('PR_EC_WEBACCESS_SETTINGS_JSON'))