Commit cbfbdf25 authored by Toby Dickenson's avatar Toby Dickenson

Check whether a registered extension method already exists before creating the...

Check whether a registered extension method already exists before creating the marshaller attribute. This allows for a smooth migration should a former extension method be promoted to the normal storage interface.
parent 5088f4ba
......@@ -424,7 +424,8 @@ class ClientStorage:
def _handle_extensions(self):
for name in self.getExtensionMethods():
setattr(self, name, self._server.extensionMethod(name))
if not hasattr(self, name):
setattr(self, name, self._server.extensionMethod(name))
def set_server_addr(self, addr):
# Normalize server address and convert to string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment