Stein Magnus Jodal
bcff80c714
Switch from multiprocessing.dummy to threading to fix startup issue
2011-03-20 01:14:33 +01:00
Stein Magnus Jodal
3a1de6578d
Remove unused BaseProcess and strip queue stuff from BaseThread
2011-03-07 21:37:55 +01:00
Stein Magnus Jodal
0acaa8f285
Log startup message directly from setup_logging
2011-03-07 21:33:53 +01:00
Stein Magnus Jodal
e150a24dfe
Review patch for GH-63
...
- Moved mask_value_if_secret til after the method using it. Most
important/interesting method first, lower level/more detailed later.
- Made the logic in mask_value_if_secret simpler to understand, I think,
by making the two different cases more obvious.
- Split the test in two, as it actually tested two different cases.
- Changed the test names to explain what should happen, and not just
what is tested.
- Add a new test that tests the case which caused the crash: a setting
being None.
2011-02-09 17:08:40 +01:00
Martins Grunskis
f33c65ddfe
mopidy --list-settings fails on fresh install
2011-02-09 17:05:29 +02:00
Stein Magnus Jodal
7f4ce3be8a
Fix SettingsProxy.__getattr__ to support settings that are None or 0.
2011-01-21 16:29:04 +01:00
Stein Magnus Jodal
6a8998a5c3
Fix pylint warnings
2010-11-02 23:42:02 +01:00
Thomas Adamcik
71ee3a8ef7
Don't remove expanduser from get_or_create_file and get_or_create_folder
2010-11-01 00:37:55 +01:00
Thomas Adamcik
fe309d374e
Get rid of all kinds of abspath and expandpath usage that is no longer needed
2010-11-01 00:37:55 +01:00
Thomas Adamcik
c513d0f6e7
Rename settings that have dirs or file to _PATH and _FILE
2010-11-01 00:37:55 +01:00
Thomas Adamcik
3661800563
Add _FILE handling
2010-11-01 00:37:55 +01:00
Thomas Adamcik
70fe571b05
Add special casing of _PATH settings
2010-11-01 00:37:55 +01:00
Stein Magnus Jodal
61c8720158
Merge remote branch 'adamcik/feature/file-scanner' into develop
2010-10-31 01:16:30 +02:00
Stein Magnus Jodal
39be6d2033
Extract GStreamerMessagesThread as a generic GObjectEventThread
2010-10-31 00:48:10 +02:00
Thomas Adamcik
7767dd1ae4
Better unicode handling for scan code
2010-10-30 23:35:04 +02:00
Thomas Adamcik
dd259d0797
Ensure that find_files only returns unicode
2010-10-30 23:12:32 +02:00
Thomas Adamcik
92333208de
Add mopidy.utils.path.mtime helper that is easily faked in tests
2010-10-30 20:53:23 +02:00
Thomas Adamcik
d2d8e4c090
Use expanduser for find_files
2010-10-30 00:45:08 +02:00
Thomas Adamcik
a48e881040
Add split path util
2010-10-29 22:55:42 +02:00
Thomas Adamcik
d785b9b14e
Added uri_to_path with tests
2010-10-29 22:16:33 +02:00
Thomas Adamcik
1551723dd7
Merge branch 'develop' into feature/file-scanner
2010-10-26 22:22:06 +02:00
Thomas Adamcik
efc60a943b
Update find files behaviour and add test for it
2010-10-26 00:08:51 +02:00
Thomas Adamcik
b455b54577
Add helper for finding files in folder
2010-10-25 23:31:40 +02:00
Stein Magnus Jodal
e984e24168
Fix or ignore more pylint warnings
2010-10-24 23:51:21 +02:00
Stein Magnus Jodal
0398193d34
Make all threads daemon threads per default
2010-10-24 20:07:27 +02:00
Stein Magnus Jodal
a10c36d8ec
When catching an exception, ask main thread to sys.exit
2010-10-24 19:52:13 +02:00
Stein Magnus Jodal
11e48083ee
Give all threads a reference to core_queue
2010-10-24 19:35:04 +02:00
Stein Magnus Jodal
fca321f7ff
Fix wording in log message
2010-09-12 15:37:21 +02:00
Stein Magnus Jodal
318524be21
Merge develop into feature/threads-not-processes
2010-08-26 18:51:22 +02:00
Stein Magnus Jodal
c7218e87e2
Don't let debug logging to file affect console logging (i.e. get rid of logging.basicConfig())
2010-08-24 23:33:32 +02:00
Stein Magnus Jodal
19909d7aca
Rotate log at 10M instead of 100k
2010-08-24 22:37:40 +02:00
Stein Magnus Jodal
cc98052df8
Simplify default log output
2010-08-24 21:16:57 +02:00
Stein Magnus Jodal
0cbce06037
Rename --dump to --save-debug-log. Rename related settings.
2010-08-24 21:00:10 +02:00
Stein Magnus Jodal
3d40aa7168
Add method from feature/threads-not-processes branch which is already in use
2010-08-24 20:39:00 +02:00
Stein Magnus Jodal
5868506573
Only censor password in settings listing if the password is set
2010-08-24 10:12:03 +02:00
Thomas Adamcik
947b91aa5c
Add basic runtime setting support
2010-08-23 23:30:20 +02:00
Stein Magnus Jodal
5a9d19b326
Merge 'develop' into 'feature/threads-not-processes'
2010-08-23 13:34:33 +02:00
Stein Magnus Jodal
f18e56bef9
Create empty settings.py if it does not exist
2010-08-22 21:39:06 +02:00
Stein Magnus Jodal
80c9e1e579
Add destroy() to BaseProcess and BaseThread
2010-08-22 13:33:09 +02:00
Stein Magnus Jodal
f8555e7061
Create BaseThread as copy of BaseProcess but with different superclass
2010-08-22 13:08:00 +02:00
Stein Magnus Jodal
1ae172d0c1
Move mopidy.utils.{ => log}.indent
2010-08-20 16:38:59 +02:00
Stein Magnus Jodal
51b5910e68
Add process name to BaseProcess logging
2010-08-20 01:59:27 +02:00
Stein Magnus Jodal
560b8be86f
Move log setup to mopidy.utils.log
2010-08-20 01:31: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
107c87477e
Rename mopidy.settings.{active => current}
2010-08-18 13:05:46 +02:00
Stein Magnus Jodal
1872082932
Calculate the active settings dynamically, so tests can do mopidy.settings.local.clear() to get rid of local settings
2010-08-18 13:03:24 +02:00
Stein Magnus Jodal
6b834e6a33
Fix loading of local settings when local settings is not present
2010-08-18 00:06:45 +02:00
Stein Magnus Jodal
da184ac896
Add '--list-settings' option
2010-08-17 02:34:10 +02:00
Stein Magnus Jodal
61059e7610
Use logging for settings validation errors
2010-08-17 02:02:52 +02:00