mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-29 16:31:25 +00:00
Fix metaclass not registering objects
This commit is contained in:
parent
4cbb71705e
commit
4bd0806e58
2 changed files with 2 additions and 4 deletions
|
@ -14,7 +14,7 @@ class ComponentType(type):
|
||||||
return klass
|
return klass
|
||||||
|
|
||||||
|
|
||||||
class Component(object):
|
class Component(object, metaclass=ComponentType):
|
||||||
"""
|
"""
|
||||||
lbrynet-daemon component helper
|
lbrynet-daemon component helper
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ class Component(object):
|
||||||
methods
|
methods
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__metaclass__ = ComponentType
|
|
||||||
depends_on = []
|
depends_on = []
|
||||||
component_name = None
|
component_name = None
|
||||||
|
|
||||||
|
|
|
@ -129,8 +129,7 @@ class JSONRPCServerType(type):
|
||||||
return klass
|
return klass
|
||||||
|
|
||||||
|
|
||||||
class AuthorizedBase(object):
|
class AuthorizedBase(object, metaclass=JSONRPCServerType):
|
||||||
__metaclass__ = JSONRPCServerType
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def deprecated(new_command=None):
|
def deprecated(new_command=None):
|
||||||
|
|
Loading…
Add table
Reference in a new issue