def AddLock(lock): """Add a lock has to the anarch info file """ anarch_self = AnarchSelf() anarch_self['Locks'].append(lock) JsonUtil.WriteJsonData(anarch_self, "ANARCH_SELF.json")
def UpdateAnarchSelf(key, value): """Update the anarch info file """ anarch_self = AnarchSelf() anarch_self[key] = value JsonUtil.WriteJsonData(anarch_self, "ANARCH_SELF.json")