refactor owner to be saas friendly

This commit is contained in:
Rudi Grinberg 2012-11-19 19:57:33 -05:00
parent a28c9d9e27
commit 8696571b02
4 changed files with 44 additions and 45 deletions

View file

@ -4,6 +4,7 @@ from os.path import join
from media.monitor.exceptions import NoConfigFile
from media.monitor.pure import LazyProperty
from media.monitor.config import MMConfig
from media.monitor.owners import Owner
from api_clients.api_client import AirtimeApiClient
# poor man's phantom types...
@ -46,3 +47,7 @@ class AirtimeInstance(object):
@LazyProperty
def mm_config(self):
return MMConfig(self.config_paths['media_monitor'])
@LazyProperty
def owner(self):
return Owner()