added TODO + formatting
This commit is contained in:
parent
fdf8c9fb4e
commit
c1959f936e
1 changed files with 11 additions and 7 deletions
|
@ -50,15 +50,19 @@ class AirtimeInstance(object):
|
|||
def mm_config(self):
|
||||
return MMConfig(self.config_paths['media_monitor'])
|
||||
|
||||
@LazyProperty
|
||||
def owner(self):
|
||||
return Owner()
|
||||
# NOTE to future code monkeys:
|
||||
# I'm well aware that I'm using the shitty service locator pattern
|
||||
# instead of normal constructor injection as I should be. The reason
|
||||
# for this is that I found these issues a little too close to the
|
||||
# end of my tenure. It's highly recommended to rewrite this crap
|
||||
# using proper constructor injection if you ever have the time
|
||||
|
||||
@LazyProperty
|
||||
def event_registry(self):
|
||||
return EventRegistry()
|
||||
def owner(self): return Owner()
|
||||
|
||||
@LazyProperty
|
||||
def file_mediator(self):
|
||||
return FileMediator()
|
||||
def event_registry(self): return EventRegistry()
|
||||
|
||||
@LazyProperty
|
||||
def file_mediator(self): return FileMediator()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue