Stein Magnus Jodal
57cdab586a
Fix flake8 warnings
2014-12-07 20:39:39 +01:00
Stein Magnus Jodal
496142c201
py3: Use absolute imports by default
2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
027b7a53fe
main: Log uncaught exceptions
2014-08-16 23:04:01 +02:00
Trygve Aaberge
f0b66bdfcb
main: Ensure that exit_status_code always is assigned
...
KeyboardInterrupts are not always catched in commands.py. As far as I
have seen, if I/O operations are ongoing, a KeyboardInterrupt may be
raised there instead of in commands.py. In some cases, this may cause
loop.run() to return, which previously resulted in exit_status_code
being referenced before assignment.
2014-08-13 01:21:03 +02:00
Trygve Aaberge
0863a813fa
main: Return status code 1 if {Backend,Frontend,Mixer}Error is raised
2014-08-11 13:43:18 +02:00
Nick Steel
a2128864e7
Fixed typo in comment
2014-07-26 13:38:28 +01:00
Stein Magnus Jodal
5f091c10c2
mixer: Inject audio into software mixer
...
Instead of giving all mixers access to the audio actor.
2014-07-12 01:53:43 +02:00
Stein Magnus Jodal
95bddf666b
main: Log and exit if {Backend,Frontend,Mixer}Error is raised
2014-07-09 23:49:06 +02:00
Stein Magnus Jodal
64ecd7643a
main: Stop only the mixer actor that we now is running
2014-07-09 21:16:09 +02:00
Stein Magnus Jodal
93ffde39c2
mixer: Use initial volume from audio/mixer_volume
2014-07-08 01:18:38 +02:00
Stein Magnus Jodal
6d6bc4b808
core: Use new mixer API
2014-07-08 01:11:25 +02:00
Stein Magnus Jodal
4f53521fea
main: Start/stop the selected mixer
2014-07-07 21:03:57 +02:00
Stein Magnus Jodal
05f6b424ef
commands: Fix typo
2014-06-05 09:20:41 +02:00
Stein Magnus Jodal
b754885064
Fix all import order warnings
2014-05-07 20:08:43 +02:00
Stein Magnus Jodal
550f7a971b
log: Add verbosity_level 2 and 3
...
Reduces the amount of dependency logging on level 1, and increases the amount
on level 2 and 3. Fixes #593 .
2014-01-12 01:46:49 +01:00
Thomas Adamcik
042868e602
Merge branch 'develop' into feature/extension-registry
...
Conflicts:
mopidy/backends/local/json/actor.py
mopidy/backends/local/json/library.py
2014-01-08 23:50:03 +01:00
Stein Magnus Jodal
0fb7c79524
log: Use loggers named after __name__
2014-01-01 13:31:20 +01:00
Thomas Adamcik
60112d7c6f
Merge branch 'develop' into feature/extension-registry
2013-12-30 00:37:17 +01:00
Stein Magnus Jodal
413d539a7b
py3: Use print() function
2013-12-28 19:23:04 +01:00
Thomas Adamcik
8a94d81c42
ext: Move away from global registry to ease testing.
...
Extension's setup method are now passed the active registry allowing them to
"steal" a list of the registry items they care about. In the case of commands
the registry is passed via args.registry.
2013-12-23 21:46:24 +01:00
Thomas Adamcik
decce4ccf6
ext: Add basic global registry and switch to Extension.setup()
2013-12-22 15:11:15 +01:00
Thomas Adamcik
0d7fea0a43
ext: Convert commands to use new registry system.
...
Creates a placeholder registry using the existing hooks, and updates the
commands to use these. The actual registry still needs to be created.
2013-12-22 15:11:15 +01:00
Thomas Adamcik
279618fcde
commands: Remove print statement
2013-12-19 23:42:33 +01:00
Thomas Adamcik
89638e55d6
flags: use $XDG_CONFIG_DIRS and $XDG_CONFIG_HOME as defaults
...
This does not add support for '$XDG_CONFIG_DIRS' expansion, it just makes the
default include what it is set to.
2013-12-19 22:10:12 +01:00
Stein Magnus Jodal
33d82b0229
dbus: Set GObject event loop as default DBus loop
...
This must be done early in the process life cycle to have any effect. In the
MPRIS frontend code is too late. Right before the GObject loop is created in
RootCommand.run() is also too late.
Fixes mopidy/mopidy-mpris#2
2013-11-20 22:20:54 +01:00
Stein Magnus Jodal
c32f67f38c
commands: Use single quotes
2013-11-16 14:06:45 +01:00
Thomas Adamcik
03c301705d
commands: Move mopidy.utils.command to mopidy.commands
...
- Also adds documenation to Command class.
- Moves scan command to commands to match naming.
2013-11-16 03:02:45 +01:00
Thomas Adamcik
2f6ecd9171
commands: Move to using a help attribute instead of __doc__
2013-11-16 02:26:47 +01:00
Thomas Adamcik
63899059be
main: Convert main program flow to command helpers
...
- Moves all startup code from start() into mopidy.commands
- Moves deps and config to mopidy.commands
- Plugs in use of commands parsing provided by new helpers
- Allows commands to override base verbosity level
- Removes defunct bootstrap logging helper.
2013-11-14 23:33:29 +01:00
Thomas Adamcik
7144876dc5
main: Move default subparsers into commands module
...
Also switches to using dest for storing the chosen sub-parser.
2013-11-08 22:01:18 +01:00
Thomas Adamcik
9539c2ac35
main: Switch to subcommands
...
- show-deps replaced with 'mopidy deps'
- show-config replaced with 'mopidy config'
- Just running mopidy now displays help, run 'mopidy run' to start server.
2013-11-08 19:53:00 +01:00
Thomas Adamcik
f49973304c
main: Start unifying command handling
...
- Removes show_deps and show_config from commands module. These
are now handled directly in the main() method pending subcommands.
- Unifies show_config with general main() config handling.
- Sets default verbosity level to zero.
- Reduce verbosity when --show-config or --show-deps is called.
- Update console logging to consider verbosity < 0 quiet/
2013-11-08 01:17:52 +01:00
Thomas Adamcik
bdba83b1be
main: Move argparse building to a function.
2013-11-08 00:09:17 +01:00
Stein Magnus Jodal
f7234a6128
commands: Fix verbose mode
...
argparse and optparse differs in how action='count', default=1 is interpreted.
2013-05-04 15:55:25 +02:00
Stein Magnus Jodal
1c1b8f843e
config: Fix typo
2013-05-03 23:35:51 +02:00
Stein Magnus Jodal
69caea2ef9
command: Move override parsing into module
2013-04-30 23:27:12 +02:00
Stein Magnus Jodal
5e4f22bd17
commands: Use argparse to split config files into a list
2013-04-30 23:27:12 +02:00
Stein Magnus Jodal
df2abde258
commands: Move argument parser to commands module
2013-04-29 22:57:44 +02:00
Stein Magnus Jodal
a301906fe7
commands: Move --show-{config,deps} handlers to new module
2013-04-29 22:52:11 +02:00