add view to controls stations

This commit is contained in:
bkfox
2016-07-29 18:44:39 +02:00
parent 5329e983a4
commit 9728acef81
8 changed files with 378 additions and 4 deletions

View File

@ -80,6 +80,10 @@ class Station(programs.Nameable):
sources.append(self.dealer)
return sources
@property
def all_sources(self):
return self.get_sources(dealer = True)
@property
def stream_sources(self):
return self.get_sources(type = Source.Type.stream)
@ -351,7 +355,6 @@ class Source(programs.Nameable):
self.controller.playlist = [ sound.path for sound in
programs.Sound.objects.filter(
type = programs.Sound.Type.archive,
removed = False,
path__startswith = program.path
)
]