Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Corrects formatting for dicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoCanas committed Oct 19, 2014
1 parent 5d5f528 commit 268148e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/freeseer/frontend/controller/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
configuration = Blueprint('configuration', __name__)

plugins_map = {
"audioinput": "AudioInput",
"audiomixer": "AudioMixer",
"videoinput": "VideoInput",
"videomixer": "VideoMixer",
"importer": "Importer",
"output": "Output"
'audioinput': 'AudioInput',
'audiomixer': 'AudioMixer',
'videoinput': 'VideoInput',
'videomixer': 'VideoMixer',
'importer': 'Importer',
'output': 'Output',
}


Expand Down Expand Up @@ -72,7 +72,7 @@ def get_general_configuration():
"""
log.debug('GET /configuration/general')
return {'default_language': configuration.config.default_language,
'auto_hide': configuration.config.auto_hide}
'auto_hide': configuration.config.auto_hide, }


@configuration.route('/configuration/general', methods=['PUT'])
Expand All @@ -96,7 +96,7 @@ def get_recording_configuration():
'audio_input': configuration.config.enable_audio_recording,
'audiomixer': configuration.config.audiomixer,
'video_input': configuration.config.enable_video_recording,
'videomixer': configuration.config.videomixer}
'videomixer': configuration.config.videomixer, }


@configuration.route('/configuration/recording', methods=['PUT'])
Expand All @@ -117,7 +117,7 @@ def get_plugins(plugins):
plugins_type = plugins_map[plugins]
names = [plugin.name for plugin in configuration.plugin_manager.get_plugins_of_category(plugins_type)]
log.debug('GET /configuration/recording/{0}', plugins)
return {'plugins': names}
return {'plugins': names, }


@configuration.route('/configuration/recording/<string:plugins>', methods=['PUT'])
Expand Down

0 comments on commit 268148e

Please sign in to comment.