Stein Magnus Jodal
253695222b
jsonrpc: Clearify usage docs
2012-11-25 20:58:34 +01:00
Stein Magnus Jodal
869fcd2d8e
jsonrpc: Move future handling code to its own method
2012-11-25 20:42:48 +01:00
Stein Magnus Jodal
7f987cb1e2
jsonrpc: Lookup methods using the objects map directly
2012-11-25 20:36:04 +01:00
Stein Magnus Jodal
5a05b4af9d
jsonrpc: Doc diff between wrapper and inspector
2012-11-25 08:20:39 +01:00
Stein Magnus Jodal
40f4a8181d
jsonrpc: Wrapper takes a mapping between mounts and objects
...
This is analogous to how the inspector takes a mapping between mounts and
classes.
2012-11-25 08:03:26 +01:00
Stein Magnus Jodal
569ee6c5f3
jsonrpc: Add inspector that describes the available API
2012-11-24 00:57:08 +01:00
Stein Magnus Jodal
29e2178a79
jsonrpc: Document encoders/decoders arguments
2012-11-22 15:31:03 +01:00
Stein Magnus Jodal
61d6de2378
jsonrpc: Support methods on the root object
2012-11-22 15:30:34 +01:00
Stein Magnus Jodal
6e2ffb0820
jsonrpc: Make dict returns from plain objects work
2012-11-22 12:11:22 +01:00
Stein Magnus Jodal
b038c4c2db
Add generic JSON-RPC 2.0 object wrapper
...
This can wrap multiple objects, which can be both plain objects and Pykka
actors. To my knowledge, everything in the spec is supported.
2012-11-21 23:51:05 +01:00
Stein Magnus Jodal
d153fa6b59
Remove rogue commas making tuples of my strings
2012-11-21 10:42:33 +01:00
Stein Magnus Jodal
6cb2d6293d
Improve fix for #256
...
- Forgot to decode result from glib.get_user_config_dir()
- glib.USER_DIRECTORY_MUSIC isn't always defined
2012-11-21 10:30:06 +01:00
Stein Magnus Jodal
26e6b2e730
Fix crash when XDG variables contain non-ASCII characters ( fixes #256 )
2012-11-21 10:20:08 +01:00
Stein Magnus Jodal
6aa1ee7f5c
network: The recieve buffer should be a bytestring
2012-11-19 22:18:51 +01:00
Stein Magnus Jodal
6f0919bda8
style: Fix flake8 warnings
2012-11-19 18:01:31 +01:00
Stein Magnus Jodal
b3fd9d8b40
deps: Pykka version check doesn't need to work with < 1.0
2012-11-15 08:48:43 +01:00
Stein Magnus Jodal
8a440fff3f
network: Server send buffer should be bytes, not unicode ( #241 )
2012-11-14 18:12:52 +01:00
Stein Magnus Jodal
1b5b7abfdd
Allow settings prefixed with 'CUSTOM_' ( fixes #204 )
2012-11-13 00:44:07 +01:00
Stein Magnus Jodal
6acaa490e9
Make all strings unicode by default ( fixes #224 )
2012-11-13 00:18:47 +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
49cf1ab8aa
Require at least one frontend and one backend
2012-11-08 14:43:21 +01:00
Stein Magnus Jodal
197447c0cb
Remove ancient despotify settings check
2012-11-08 14:42:06 +01:00
Stein Magnus Jodal
b110e6a478
Move file path is in base dir checker to mopidy.utils.path
2012-11-01 23:10:18 +01:00
Stein Magnus Jodal
0dd4aba143
Move slugify to mopidy.utils.formatting
2012-11-01 23:09:37 +01:00
Stein Magnus Jodal
0a8dc743a5
Fix logging on Python 2.6 ( fixes #220 )
2012-10-30 09:31:16 +01:00
Stein Magnus Jodal
e8af2276e2
Log warnings instead of just printing them
2012-10-29 12:54:21 +01:00
Stein Magnus Jodal
d685fe554c
Simplify pykka imports
2012-10-26 22:57:41 +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
0c9452d9d3
Remove unused argument shadowing builtin ( #211 )
2012-10-17 01:31:41 +02:00
Stein Magnus Jodal
8042f9961a
Mark strings with backslashes as raw strings ( #211 )
2012-10-17 01:07:00 +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
afdc665ac0
Use deps.{platform_info,python_info} in log
2012-10-16 22:26:28 +02:00
Stein Magnus Jodal
5fc77be76e
Update path in comment
2012-10-16 22:25:37 +02:00
Stein Magnus Jodal
479ab249bb
Move mopidy.utils.{log => formatting}.indent to break import cycle
2012-10-16 22:25:23 +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
63cd153b1b
Let NetworkServer pass protocol_kwargs on
2012-09-28 00:48:23 +02:00
Stein Magnus Jodal
66f476e85a
Fix typo
2012-09-26 10:08:59 +02:00
Stein Magnus Jodal
49201def74
Fix NameError caused by change to module imports
2012-09-19 23:54:41 +02:00
Stein Magnus Jodal
0c9966197b
Make log output consistent with --list-deps output
2012-09-19 13:34:18 +02:00
Stein Magnus Jodal
772185ddc9
Make first log line prettier
2012-09-19 02:40:51 +02:00
Thomas Adamcik
a707daf458
Add tests for expand_path and fix ordering.
...
Expansions need to happen before abspath is called or else result is wrong.
2012-09-16 22:26:44 +02:00
Thomas Adamcik
dda5e5261a
Move and rename expand_path to mopidy.utils.path
...
Also switches a bit move of mopidy.utils.settings over to module imports and
double spaces between functions.
2012-09-16 22:07:59 +02:00
Thomas Adamcik
7ceb530064
Updated find files to ignore hidden files and folders.
2012-09-16 18:14:11 +02:00
Thomas Adamcik
355ff811af
Add $XDG_name_DIR substitution to _FILE and _PATH settings.
...
This change removes the practice of hardcoding fallbacks to these paths outside
of the base settings file. We can probably get rid of some of the location
CONSTANTS that are currently in use in mopidy/__init__.py
2012-09-16 18:03:07 +02:00
Thomas Adamcik
3cf1b13d49
Cleanup mopidy.utils.settings.
...
- Move to module import for stdlib
- Extract path manipulation code to a method
- Avoid uneeded copying of settings dict by binding current localy.
2012-09-16 17:47:51 +02:00
Thomas Adamcik
6bee352f47
Move trackback dumping to logger.
2012-09-16 16:24:36 +02:00