Mercurial > libervia-pubsub
comparison idavoll/memory_storage.py @ 221:a430976f2977
Make a copy of the config to prevent later modification.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Sat, 16 Oct 2010 20:56:51 +0200 |
parents | aecfacb5a571 |
children | 0eafdced5f24 |
comparison
equal
deleted
inserted
replaced
220:e59b48f3f636 | 221:a430976f2977 |
---|---|
98 | 98 |
99 def __init__(self, nodeIdentifier, owner, config): | 99 def __init__(self, nodeIdentifier, owner, config): |
100 self.nodeIdentifier = nodeIdentifier | 100 self.nodeIdentifier = nodeIdentifier |
101 self._affiliations = {owner.userhost(): 'owner'} | 101 self._affiliations = {owner.userhost(): 'owner'} |
102 self._subscriptions = {} | 102 self._subscriptions = {} |
103 self._config = config | 103 self._config = copy.copy(config) |
104 | 104 |
105 | 105 |
106 def getType(self): | 106 def getType(self): |
107 return self.nodeType | 107 return self.nodeType |
108 | 108 |