ext: Switch rest of bundled extensions to registry
This commit is contained in:
parent
58e3cb8faf
commit
6afc85ec72
@ -26,6 +26,6 @@ class Extension(ext.Extension):
|
|||||||
def validate_environment(self):
|
def validate_environment(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_backend_classes(self):
|
def setup(self, registry):
|
||||||
from .actor import StreamBackend
|
from .actor import StreamBackend
|
||||||
return [StreamBackend]
|
registry.add('backend', StreamBackend)
|
||||||
|
|||||||
@ -35,6 +35,6 @@ class Extension(ext.Extension):
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
raise exceptions.ExtensionError('ws4py library not found', e)
|
raise exceptions.ExtensionError('ws4py library not found', e)
|
||||||
|
|
||||||
def get_frontend_classes(self):
|
def setup(self, registry):
|
||||||
from .actor import HttpFrontend
|
from .actor import HttpFrontend
|
||||||
return [HttpFrontend]
|
registry.add('frontend', HttpFrontend)
|
||||||
|
|||||||
@ -29,6 +29,6 @@ class Extension(ext.Extension):
|
|||||||
def validate_environment(self):
|
def validate_environment(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_frontend_classes(self):
|
def setup(self, registry):
|
||||||
from .actor import MpdFrontend
|
from .actor import MpdFrontend
|
||||||
return [MpdFrontend]
|
registry.add('frontend', MpdFrontend)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user