Пример #1
0
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")
Пример #2
0
def UpdateAnarchSelf(key, value):
    """Update the anarch info file
    """
    anarch_self = AnarchSelf()
    anarch_self[key] = value
    JsonUtil.WriteJsonData(anarch_self, "ANARCH_SELF.json")