Stein Magnus Jodal
8c6f04a408
models: Change serialized type marker from '__type__' to '__model__'
2012-11-20 00:21:26 +01:00
Stein Magnus Jodal
34d444e563
models: Don't allow model deserialization to override methods
2012-11-19 23:35:05 +01:00
Stein Magnus Jodal
f83c595e3a
models: Support deserialization of any ImmutableObject
2012-11-19 23:02:08 +01:00
Stein Magnus Jodal
3bc4126b45
models: Fix TlTrack deserialization
2012-11-18 17:28:37 +01:00
Stein Magnus Jodal
68e4b207cb
models: Support automatic serialization to and deserialization from JSON
2012-11-18 16:53:26 +01:00
Stein Magnus Jodal
f237736f87
models: Add '__type__' attribute to serialized models
2012-11-18 16:53:09 +01:00
Stein Magnus Jodal
87ba412942
models: Make TlTrack an ImmutableObject
2012-11-16 15:01:37 +01:00
Stein Magnus Jodal
bba9548b27
Rename 'current playlist' to 'tracklist'
2012-11-13 10:59:48 +01:00
Stein Magnus Jodal
6acaa490e9
Make all strings unicode by default ( fixes #224 )
2012-11-13 00:18:47 +01:00
Stein Magnus Jodal
d1a42d95f1
Add Album.date attribute
2012-10-30 09:56:53 +01:00
Stein Magnus Jodal
bbda85462d
Docstring formatting
2012-10-30 09:34:53 +01:00
Stein Magnus Jodal
666800ec57
Fix most flake8 warnings ( #211 )
2012-10-16 14:00:34 +02:00
Stein Magnus Jodal
2ba05f9405
Add PlaybackState enum
2012-09-14 01:17:55 +02:00
Stein Magnus Jodal
7525cad94c
Let Track.date be an ISO-8601 string
...
This lets us have less precision than full dates. E.g. Spotify tracks only got
release year, not full release date.
The original MPD server regularly expose data like this as "Date: 1977", so we
don't need to fake more precision for MPD's sake.
2012-09-12 23:06:06 +02:00
Thomas Adamcik
6805c16b1a
Add .serialize() method to ImutableObjects.
...
Should be useful for things like dumping to json.
2012-09-05 23:54:37 +02:00
Stein Magnus Jodal
716c5b03e2
Remove Playlist.mpd_format() and its usage
2011-12-28 00:36:51 +01:00
Stein Magnus Jodal
ab4f21b389
Remove Track.mpd_format() which is no longer in use
2011-12-28 00:33:42 +01:00
Stein Magnus Jodal
3f97f3f78b
Convert cp_track from tuple to namedtuple, to get more readable code
2011-06-04 20:46:34 +02:00
Stein Magnus Jodal
caedac252e
Move import into methods where needed to avoid import loops when importing mopidy.models
2011-06-04 20:45:03 +02:00
Stein Magnus Jodal
005260eb9c
Add __repr__ to ImmutableObject to get better output from failed model comparisions in tests
2011-04-06 18:18:00 +02:00
Stein Magnus Jodal
037da6f460
Remove Playlist._tracks workaround
2011-04-06 18:01:33 +02:00
Stein Magnus Jodal
fce5964395
Remove Track._artists workaround
2011-04-06 17:54:12 +02:00
Stein Magnus Jodal
9499250a7f
Remove Album._artists workaround
2011-04-06 17:51:36 +02:00
Stein Magnus Jodal
1ed29a4b9a
Fix pylint warnings
2010-11-03 00:11:46 +01:00
Stein Magnus Jodal
b234c0553c
Fix docstring indentation
2010-11-03 00:09:13 +01:00
Thomas Adamcik
3fe3ed27b9
Document copy method and update musicbrainz field doc
2010-11-03 00:01:32 +01:00
Thomas Adamcik
edb2f060c4
Add musicbrainz to models
2010-11-02 00:36:01 +01:00
Thomas Adamcik
d05e48c439
Add generic copy method to models (including tests)
2010-11-02 00:35:27 +01:00
Thomas Adamcik
913bac3b0d
Rename with_ to copy
2010-11-01 00:56:06 +01:00
Johannes Knutsen
e1f8a0bf72
Rename mopidy.frontends.mpd.{serializer => translator} to match naming in backends.
2010-08-13 20:48:38 +02:00
Stein Magnus Jodal
b4c91af7d7
Relocate MPD frontend to 'mopidy.frontends.mpd'
2010-08-09 21:17:36 +02:00
Stein Magnus Jodal
96ac806d8f
Remove Track.id field
2010-08-08 17:17:38 +02:00
Stein Magnus Jodal
dd494107d3
Extract mpd_format from models to mopidy.mpd.serializers
2010-07-01 00:39:50 +02:00
Stein Magnus Jodal
04c7fe9e5c
Add missing param doc for Playlist.last_modified
2010-06-26 23:37:47 +02:00
Stein Magnus Jodal
3522a4498a
Document search_result arg to Track.mpd_format()
2010-06-07 02:26:12 +02:00
Thomas Adamcik
1da9dced77
Ensure that models don't accept unknown kwarg keys
2010-04-29 21:09:17 +02:00
Thomas Adamcik
0bcda9920b
Various pylint fixes
2010-04-29 20:37:22 +02:00
Thomas Adamcik
3e640e1e5b
Move eq method to imutable object parent class
2010-04-28 21:56:01 +02:00
Thomas Adamcik
949ca6357f
Use frozensets in models as they are hashable
2010-04-28 21:53:10 +02:00
Thomas Adamcik
1e7fa943be
Add hash function to models
2010-04-28 21:52:40 +02:00
Thomas Adamcik
3c36efad5d
Fix models with respect to comparison with other value
2010-04-28 21:52:05 +02:00
Thomas Adamcik
3a3ee1a9f9
Fix MPD artist format with repsect to list to set conversion
2010-04-27 23:31:48 +02:00
Thomas Adamcik
fc45b20cca
Fix equality tests with respect to ordering
2010-04-27 23:26:02 +02:00
Thomas Adamcik
b24d883db9
Test comparing with None
2010-04-27 23:15:33 +02:00
Thomas Adamcik
f8b2d52333
Add __eq__ to Track
2010-04-27 23:12:24 +02:00
Thomas Adamcik
3bc795ee95
Add __eq__ to album
2010-04-27 22:55:36 +02:00
Thomas Adamcik
06d6fd81c7
Add __eq__ to Artist
2010-04-27 22:47:35 +02:00
Stein Magnus Jodal
6a2e7e2e73
Add support for negative songpos arg in 'playlistinfo' as used by ncmpc
2010-03-14 23:18:03 +01:00
Stein Magnus Jodal
2dea0820b2
Rename Track.title to Track.name
2010-02-28 22:00:19 +01:00
Stein Magnus Jodal
6dfb658e6b
Add last_modified field to Playlist model
2010-02-28 18:58:33 +01:00