Commit Graph

45 Commits

Author SHA1 Message Date
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
Stein Magnus Jodal
0ab6a311e5 Document ImmutableObject class 2010-02-15 22:37:45 +01:00
Stein Magnus Jodal
0a3341063b Format search results correctly 2010-02-13 17:41:22 +01:00
Stein Magnus Jodal
a098704334 Remove redundant docstring end 2010-02-13 15:50:18 +01:00
Stein Magnus Jodal
94b100d7af Simplify models by changing __setattr__ instead of having tons of property getters 2010-02-13 15:42:17 +01:00
Stein Magnus Jodal
902953d992 Fix bugs in mopidy.models revealed by new tests 2010-02-13 14:10:50 +01:00
Stein Magnus Jodal
13819b62b3 Test full currentsong output 2010-02-08 00:20:25 +01:00
Stein Magnus Jodal
969beea69b Document arguments to Playlist.mpd_format() 2010-02-07 22:36:47 +01:00
Stein Magnus Jodal
682b14c13c Rename to with_() since with is reserved in Python >=2.6 2010-02-07 21:24:57 +01:00
Stein Magnus Jodal
b6bceacc0f Add Playlist.with() 2010-02-07 21:23:32 +01:00
Stein Magnus Jodal
554c0b4e52 Add Track.bitrate field 2010-02-07 02:28:41 +01:00
Stein Magnus Jodal
ea45b4d5e7 Add API doc of mopidy.models 2010-02-06 13:59:50 +01:00
Stein Magnus Jodal
2ca244f106 Add backend-independent models 2010-01-31 03:24:12 +01:00