Mikhail Golubev
b596b85571
Add "sortname" field in the Artist model ( #940 )
2015-07-25 17:25:28 +02:00
Nick Steel
c273718e5c
Docs: URI field docstring typo
2015-06-04 13:17:18 +01:00
Stein Magnus Jodal
d8bcd7f273
Rename mopidy.utils to mopidy.internal
2015-05-07 23:15:56 +02:00
Thomas Adamcik
85871fb33d
docs: Improve fields documentation
2015-05-05 00:00:22 +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
5989d3a017
models: Simplify how we add __weakref__ to slots
2015-05-04 22:39:36 +02:00
Thomas Adamcik
7f6809aebb
models: Explicitly define which models can be deserialized
2015-05-04 22:36:27 +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
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
Thomas Adamcik
7af10c52d2
models: Remove TODO to make models we can serialize a global
...
Turns out that module construction time is too early to run this code.
2015-04-27 00:04:12 +02:00
Thomas Adamcik
5f420a1bff
review: Address review comments for models split
2015-04-26 23:31:56 +02:00
Thomas Adamcik
1d5abe44a6
models: Add Uri and Date field "placeholders"
2015-04-25 00:15:03 +02:00
Thomas Adamcik
7e59a5aecb
models: Split models into smaller modules
2015-04-25 00:11:41 +02:00