Thomas Adamcik
c01f8679bc
core: Address review comments for do not trust backends PR
2015-05-06 22:34:44 +02:00
Thomas Adamcik
4aa984207b
tests: Split up core bad backend tests and unify naming
2015-05-06 01:01:12 +02:00
Thomas Adamcik
e7b241e18b
core: Update playlists to handle bad data from backends and exceptions
2015-05-06 00:28:58 +02:00
Thomas Adamcik
3426633c78
core: Make sure we handle bad mixer data and exceptions.
2015-05-05 23:41:46 +02:00
Thomas Adamcik
dd4a8f3b78
core: Make sure library can handle bad data from backends
...
Note that None values are just ignored, while other bad data logs an error
message and is ignored.
2015-05-05 22:55:53 +02:00
Stein Magnus Jodal
746c3059ba
Merge pull request #1160 from adamcik/feature/model-corner-case-handling
...
Move new models features to new class
2015-05-05 08:08:05 +02:00
Thomas Adamcik
b480311d66
models: Add ValidatedImmutableObject and "revert" ImmutableObject
...
Testing with extension that use custom models it was discovered that the
changes to have type safe models were a bit to invasive to be suitable for a
minor release. This change fixes this by bringing back ImmutableObjects in
their old form, and moving the shinny new features to ValidatedImmutableObject.
A subset of the tests for ImmutableObjects have been resurrected to have some
confidence in this working the way we think it should.
2015-05-04 23:41:11 +02:00
Thomas Adamcik
7f6809aebb
models: Explicitly define which models can be deserialized
2015-05-04 22:36:27 +02:00
Thomas Adamcik
07159f69c2
models: Decouple fields tests from the model metaclass
2015-05-04 21:37:17 +02:00
Thomas Adamcik
bb95dc3b9b
models: Make sure parent fields are used by children.
...
Without this change any sub-class would end up with an empty _fields and none
of the actual fields would be writable even internally.
2015-05-03 22:58:43 +02:00
Stein Magnus Jodal
b4a6a4da7f
Merge branch 'v1.0.x' into develop
2015-04-30 08:44:10 +02:00
Stein Magnus Jodal
2f96dacae8
Bump version to 1.0.4
2015-04-30 08:41:03 +02:00
Thomas Adamcik
94039e06dc
models: Make sure sub-classes can extend models
2015-04-29 21:32:43 +02:00
Thomas Adamcik
8851fb151c
models: Allow Ref.type to have any value
...
This is to address a potential breakage brought up in #1150 as it turns out
Mopidy-Podcast uses custom models and ref types.
2015-04-28 22:58:15 +02:00
Stein Magnus Jodal
97c336200b
Merge branch 'v1.0.x' into develop
2015-04-28 00:02:26 +02:00
Stein Magnus Jodal
9c2aabb899
Bump version to 1.0.3
2015-04-28 00:00:25 +02:00
Stein Magnus Jodal
b14aee3e04
Merge branch 'v1.0.x' into develop
...
Conflicts:
docs/changelog.rst
2015-04-27 00:18:41 +02:00
Stein Magnus Jodal
21289f8fe5
Bump version to 1.0.2
2015-04-27 00:02:12 +02:00
Thomas Adamcik
651e89357f
tests: Fix IssueGH1120RegressionTest flakiness
2015-04-26 23:23:30 +02:00
Thomas Adamcik
7e59a5aecb
models: Split models into smaller modules
2015-04-25 00:11:41 +02:00
Thomas Adamcik
b3ea425fd0
tests: Fix IssueGH1120RegressionTest flakiness
2015-04-24 19:26:02 +02:00
Stein Magnus Jodal
3dba4f4208
Merge branch 'v1.0.x' into develop
2015-04-23 23:40:04 +02:00
Stein Magnus Jodal
9c793a38ff
Bump version to 1.0.1
2015-04-23 23:35:45 +02:00
Thomas Adamcik
d4c695ac75
mpd: Split browse and playlist name to uri caching
2015-04-23 23:08:25 +02:00
Thomas Adamcik
a62293c316
core: Add play(tlid) support
2015-04-22 20:55:51 +02:00
Thomas Adamcik
fba4069cfd
core: Make index return current index when missing args
2015-04-19 00:22:52 +02:00
Thomas Adamcik
6a7005be1e
core: Add tlid argument to index calls.
...
Should save clients from having to pass tl_track models around.
2015-04-19 00:22:52 +02:00
Stein Magnus Jodal
7752ebe7e4
Merge pull request #1130 from adamcik/feature/more-deprecation-cleanups
...
More deprecations and correspoding cleanups
2015-04-17 00:18:28 +02:00
Thomas Adamcik
09027854c6
validation: Reject iterators as core arguments
...
iter() always never re-wraps an iterator, so 'iter(i) is iter(i)' tests if we
wrapped a container or if we already had an iterator. I also tried
types.GeneratorType and inspect helpers but they did not work for this use
case.
2015-04-17 00:05:46 +02:00
Thomas Adamcik
81fd426caf
tests: Update tests to not used deprecated kwargs
2015-04-17 00:00:58 +02:00
Thomas Adamcik
efad50c253
cleanup: Stop using deprecated copy()
2015-04-17 00:00:58 +02:00
Stein Magnus Jodal
e265f5d673
Merge pull request #1128 from adamcik/feature/validate-core-input
...
Validate core inputs
2015-04-16 07:45:17 +02:00
Thomas Adamcik
98587f5098
review: Fix test name
2015-04-15 23:48:44 +02:00
Thomas Adamcik
97235f9441
core: Don't allow TLIDs in queries, or integers
...
Handle this in tracklist.filter() which is the only API that allows number
and/or TLIDs.
2015-04-14 23:46:20 +02:00
Thomas Adamcik
324bec1f4a
core: Validate core API calls
2015-04-14 23:45:56 +02:00
Thomas Adamcik
8646ba4252
utils: Add validation helpers for verifying core APIs
2015-04-14 23:16:12 +02:00
Stein Magnus Jodal
093c4340cd
Merge branch 'v1.0.x' into develop
...
Conflicts:
mopidy/audio/scan.py
tests/audio/test_scan.py
2015-04-13 08:19:14 +02:00
Thomas Adamcik
94628b5f82
local: Don't use tuple form of TlTracks in tests
2015-04-13 00:50:33 +02:00
Thomas Adamcik
1b10a783d3
mpd: Update tests to use setters and actual booleans
2015-04-13 00:16:09 +02:00
Stein Magnus Jodal
f85ea2a39d
flake8: Fix new import order warnings
...
(cherry picked from commit 71ab9733c7 )
2015-04-12 23:05:53 +02:00
Stein Magnus Jodal
71ab9733c7
flake8: Fix new import order warnings
2015-04-12 23:03:46 +02:00
Thomas Adamcik
20019edf2d
models: Fix review comments
2015-04-12 16:03:51 +02:00
Thomas Adamcik
6327a67874
models: Make sure we really only add __weakref__ once
2015-04-11 00:47:53 +02:00
Thomas Adamcik
9bc4d8b713
audio: Make scanner handle all media types.
...
I don't think this makes anything slower, as before we would still decode
anything we came across in the hopes that we find raw audio.
2015-04-11 00:29:07 +02:00
Stein Magnus Jodal
c367d350f7
Merge pull request #1117 from adamcik/feature/models-memory-reduction
...
Improve models memory usage
2015-04-08 23:29:08 +02:00
Thomas Adamcik
2cc91c0a7f
core: Fix review comments for PR#1111
2015-04-08 23:13:07 +02:00
Thomas Adamcik
e5f59495fc
core: Update refresh test case to fail on multiple calls to same backend
2015-04-08 21:18:18 +02:00
Thomas Adamcik
511cf4e326
core: Catch exceptions when browsing in backends
...
Also splits browse into to method to better distinguish the two possible code
paths.
2015-04-08 21:17:44 +02:00
Thomas Adamcik
682c6b1c6c
Merge branch 'develop' into feature/make-core-more-robust
...
Conflicts:
docs/changelog.rst
2015-04-08 20:28:10 +02:00
Thomas Adamcik
05244f7e60
models: Deprecate copy and add replace method
...
Changed as with the memoization copy was lying, so replace is a better name.
2015-04-08 01:41:50 +02:00