Start from_configuration classmethod strategy

pull/330/head
Kieran Prasch 2018-06-04 10:55:13 -07:00
parent 550a8cc1d7
commit 043e158c2c
1 changed files with 9 additions and 1 deletions

View File

@ -90,7 +90,15 @@ class ProxyRESTServer:
self.rest_port = rest_port
self.db_name = db_name
self._rest_app = None
super().__init__(*args, **kwargs) # cooperative multiple inhertence
super().__init__(*args, **kwargs) # cooperative multiple inheritance
@classmethod
def from_config(cls, network_config: NetworkConfiguration=None):
"""Create a server object from config values, or from a config file."""
# if network_config is None:
# NetworkConfiguration._load()
instance = cls()
def public_key(self, power_class: ClassVar):
"""Implemented on Ursula subclass"""