mopidy/tests/backends/base/__init__.py
Stein Magnus Jodal 2fdeec9f5a Move controllers to a new core actor
The frontends use the new core actor, while the core actor uses the backend.

This is a step towards supporting multiple backends, where the core actor will
coordinate the backends.
2012-09-27 20:35:39 +02:00

10 lines
254 B
Python

def populate_playlist(func):
def wrapper(self):
for track in self.tracks:
self.core.current_playlist.add(track)
return func(self)
wrapper.__name__ = func.__name__
wrapper.__doc__ = func.__doc__
return wrapper