Commit Graph

79 Commits

Author SHA1 Message Date
Stein Magnus Jodal
6acaa490e9 Make all strings unicode by default (fixes #224) 2012-11-13 00:18:47 +01:00
Thomas Adamcik
81a3b41bc4 Add flag and setting for thread deadlock debug tool. 2012-11-08 22:54:35 +01:00
Thomas Adamcik
b37e6a9ded Merge branch 'develop' into feature/dump-thread-tracebacks
Conflicts:
	mopidy/__main__.py
	mopidy/utils/process.py
2012-11-08 22:46:41 +01:00
Stein Magnus Jodal
262bd98c16 Move Pykka version check back to import time 2012-10-29 12:23:53 +01:00
Stein Magnus Jodal
2d92a7a228 Start multiple backends 2012-10-27 14:55:09 +02:00
Stein Magnus Jodal
587dde287f Update to work with Pykka 1.0 2012-10-26 22:32:06 +02:00
Stein Magnus Jodal
65b550eb44 Ignore invalid pylint warnings (#211) 2012-10-17 01:42:58 +02:00
Stein Magnus Jodal
ad78aba3fd Fix shadowing of imports 2012-10-17 00:50:29 +02:00
Stein Magnus Jodal
b8d637e1f5 Move DATA_PATH, SETTINGS_PATH, and SETTINGS_FILE to mopidy.utils.path 2012-10-17 00:21:24 +02:00
Stein Magnus Jodal
074fb431bf Move Pykka version check to startup, to unbreak docs building 2012-10-16 22:09:40 +02:00
Stein Magnus Jodal
986c0a9ad3 Move get_version() helper to mopidy.utils.versioning 2012-10-16 21:45:36 +02:00
Stein Magnus Jodal
5a0529b142 Empty utils/__init__.py 2012-10-16 21:36:51 +02:00
Stein Magnus Jodal
d9d6a3d5b6 Move exceptions to mopidy.exceptions 2012-10-16 16:08:46 +02:00
Stein Magnus Jodal
666800ec57 Fix most flake8 warnings (#211) 2012-10-16 14:00:34 +02:00
Stein Magnus Jodal
3c66b3a011 Use module imports 2012-09-28 11:40:31 +02:00
Stein Magnus Jodal
fe80189acc Simplify import 2012-09-28 02:20:35 +02:00
Stein Magnus Jodal
706b6c6d3f Pass core actor to frontends 2012-09-28 00:48:24 +02:00
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
Stein Magnus Jodal
f88b7115d9 Give the backends an audio proxy on construction 2012-09-26 10:40:58 +02:00
Stein Magnus Jodal
402e3043f6 Steps before log setup should be outside try-except
If the steps before the log setup are inside the try-except and they fail, the
error will not be visible since the log system hasn't been set up yet. It is
better to not catch the exception so that the error will be visible.
2012-09-19 23:51:31 +02:00
Thomas Adamcik
e17e2ea96d Merge branch 'develop' into feature/dump-thread-tracebacks 2012-09-16 16:14:34 +02:00
Stein Magnus Jodal
aab37302a1 Rename mopidy.gstreamer to mopidy.audio 2012-09-14 01:05:42 +02:00
Thomas Adamcik
88f0ffb9f2 Add a debug thread that dumps tracebacks.
Start and extra thread that blocks on a threading event until SIGUSR1 is
received. Then dump the tracebacks for all threads except itself. This
is only really useful as a debug tool for deadlocks, so we might want to
hide it behind a flag?
2012-09-09 22:48:08 +02:00
Thomas Adamcik
fd3bbc899f Merge branch 'develop' into feature/switch-to-gst-mixers
Conflicts:
	mopidy/core.py
2012-09-05 22:32:22 +02:00
Stein Magnus Jodal
4352eccdb0 Merge mopidy.core into mopidy.__main__ 2012-09-03 23:39:54 +02:00
Stein Magnus Jodal
9fc7e013ff Move main() into mopidy.core 2011-03-07 20:11:34 +01:00
Stein Magnus Jodal
19c4f1c09f Readd main() method, to not break bin/mopidy 2010-08-20 16:21:07 +02:00
Stein Magnus Jodal
976086ae65 Move options parsing, logging setup and settings validation into CoreProcess 2010-08-20 16:17:22 +02:00
Stein Magnus Jodal
79729e653b Make CoreProcess.setup() more functional to show dependencies explicitly 2010-08-20 12:54:18 +02:00
Stein Magnus Jodal
aba0cc3ef3 Remove redundant error handling, as all these cases are handled in BaseProcess 2010-08-20 12:34:13 +02:00
Stein Magnus Jodal
7f95a3b0ba Move initialization from main to core 2010-08-20 03:27:20 +02:00
Stein Magnus Jodal
60bca18b46 Run CoreProcess in the main process 2010-08-20 01:52:20 +02:00
Stein Magnus Jodal
f73800f8e4 Validate settings a tad later 2010-08-20 01:41:54 +02:00
Stein Magnus Jodal
560b8be86f Move log setup to mopidy.utils.log 2010-08-20 01:31:56 +02:00
Stein Magnus Jodal
88a4d64a59 Move MPD server into its own process 2010-08-20 01:24:56 +02:00
Stein Magnus Jodal
aede9762f8 Split BaseProcess snd CoreProcess into two files 2010-08-20 01:07:23 +02:00
Stein Magnus Jodal
5e10ad0e05 Replace SERVER and FRONTEND with a new FRONTENDS setting 2010-08-20 00:38:36 +02:00
Stein Magnus Jodal
da184ac896 Add '--list-settings' option 2010-08-17 02:34:10 +02:00
Stein Magnus Jodal
a8c736110f Move settings validation from module import to program start 2010-08-17 01:49:54 +02:00
Stein Magnus Jodal
e021863fd8 Fix broken import 2010-08-17 01:20:17 +02:00
Thomas Adamcik
a05212251b Pass output, backend and frontend classes into coreprocess to so that import errors are handeled better 2010-08-13 22:52:53 +02:00
Stein Magnus Jodal
11b8ab89c9 Fix support for IPv4 addresses in SERVER_HOSTNAME which was broken by new IPv6 support 2010-06-20 23:00:52 +02:00
Stein Magnus Jodal
a9923fcb23 Merge remote branch 'adamcik/gstreamer'
Conflicts:
	mopidy/mpd/frontend.py
	tests/mpd/frontend_test.py

GstreamerBackend now raises LookupError where the other backends just
returns None. We'll probably move in the direction of using LookupError
all over, but the changes to DummyBackend and generic tests was reverted
until BaseBackend, the backend API docs and the other backends are
updated to all raise LookupError.
2010-06-06 22:15:25 +02:00
Thomas Adamcik
feb0b3f5f3 Add logging marker 2010-05-05 23:54:53 +02:00
Stein Magnus Jodal
db20c86c80 Split logging setup into two functions 2010-05-05 22:52:09 +02:00
Stein Magnus Jodal
1660cccbea Fix missing options.debug 2010-05-05 19:42:16 +02:00
Thomas Adamcik
8361b137cc Rename debug option to dump 2010-05-05 19:21:47 +02:00
Thomas Adamcik
fc8b932723 Add file based debug logger 2010-05-05 18:33:05 +02:00
Thomas Adamcik
3c9ff6b13f Rename get_or_create_dotdir to get_or_create_folder and add tests 2010-05-01 21:03:11 +02:00
Stein Magnus Jodal
cf1fbda387 Fix more pylint violations 2010-05-01 11:46:59 +02:00