Adrian Sampson
06b3ee179c
comments, naming, and docs for part of #509
2014-01-27 22:38:23 -08:00
Bruno Tournay
0466df6215
Search again locally in album folder when running beet fetchart without -f
2014-01-27 22:02:29 +01:00
Adrian Sampson
0458d16e71
avoid NotImplementedError for the time being
2014-01-26 21:43:29 -08:00
Adrian Sampson
fbed9552ea
less code to specify sql and query for Type
...
Declarative class members instead of super calls. Wins every time.
2014-01-26 21:17:55 -08:00
Adrian Sampson
f29fbe47da
DBCore types: no functional-style Type constructor
...
This was getting more and more awkward. Also added a `parse` method (in
progress).
2014-01-26 21:12:48 -08:00
Adrian Sampson
83f981762c
fix #508 : crash when parsing empty query part
...
This is a regression created by my endeavor to have parse_query_part never
return None. Now the regular expression should really always match.
2014-01-26 10:51:58 -08:00
Adrian Sampson
bac1d661d2
"advanced" guide on manually choosing path formats
2014-01-25 23:56:04 -08:00
Adrian Sampson
d72f21d47b
catch OSError when checking for convert program
...
As reported by zeltak on IRC.
2014-01-24 20:33:41 -08:00
Adrian Sampson
def635a33b
rewrite: flatten Confit view to string
...
Previously, this would pass around a ConfigView object which would only lazily
get turned into a string. Bad!
2014-01-23 19:46:13 -08:00
Adrian Sampson
15510b6187
new dbcore.types module
...
Now Type is proper, full-on class so we don't have to fit everything in a
lambda.
2014-01-23 19:36:18 -08:00
Adrian Sampson
720587e28e
tolerate implicit conversion of bytes formatters
2014-01-23 15:18:08 -08:00
Adrian Sampson
f1a4ba815d
fix #503 : format untyped fields with bytes values
2014-01-23 15:06:24 -08:00
Adrian Sampson
081593bcb9
changelog: web API change
2014-01-22 16:36:32 -08:00
Thomas Scholtes
00e0664a94
Merge branch 'embedded_items_generators'
2014-01-22 12:04:41 +01:00
Adrian Sampson
975f77e056
type-based formatting: u'None' -> empty string
2014-01-21 21:21:51 -08:00
Adrian Sampson
7361e6b114
adjust tests to type-based formatting
2014-01-21 21:16:32 -08:00
Adrian Sampson
83c6fed6c8
type-based formatting: tolerate null values in DB
2014-01-21 21:09:53 -08:00
Adrian Sampson
7aa4d1e5ba
begin type-based formatting
2014-01-21 21:02:40 -08:00
Adrian Sampson
342d5e1f8b
whitespace cleanup
2014-01-21 20:14:36 -08:00
Adrian Sampson
7d0dbf705a
fix tests for dbcore module reorg
2014-01-21 20:04:29 -08:00
Adrian Sampson
56602ec0cc
expand justification for BytesQuery's existence
2014-01-21 20:02:50 -08:00
Adrian Sampson
56bb642fe8
undo dumb file renaming mistake
2014-01-21 19:40:00 -08:00
Adrian Sampson
69905dde9b
resolve FIXMEs from query refactor
2014-01-21 19:37:54 -08:00
Adrian Sampson
d44f9f7052
map comp queries declaratively
...
Woohoo! More removal of special cases.
2014-01-21 19:13:16 -08:00
Adrian Sampson
74d0dc8352
further paramaterize parse_query_part
2014-01-21 19:09:34 -08:00
Thomas Scholtes
aa07eb9551
Load development beetsplug in tests
...
See also a4b6976755
2014-01-21 22:45:51 +01:00
Thomas Scholtes
f98240b83c
JSON API responds with embedded items
...
This effectively removes the "album_ids" and "item_ids" keys from the responses
of `/item/` and `/album/`, respectively. Instead there are "albums" and "items" keys,
respectively that contain a list of JSON representations for all albums and
items.
2014-01-21 22:40:42 +01:00
Thomas Scholtes
83e86241b8
Add JSON-API tests
2014-01-21 22:39:48 +01:00
Thomas Scholtes
9d1731faf2
Use generators to stream web requests
2014-01-21 16:42:25 +01:00
Thomas Scholtes
7d6d8f1fd4
Embed item data into web request
2014-01-21 16:08:22 +01:00
Adrian Sampson
f7ff8e9f99
changelog/thanks for #499
2014-01-20 18:57:54 -08:00
Adrian Sampson
28d4b9320c
Merge pull request #499 from geigerzaehler/master
...
Make pluginpath configuration useable
2014-01-20 18:55:20 -08:00
Adrian Sampson
1cdb30fd56
remove superfluous py_type field from Type
2014-01-20 18:06:42 -08:00
Adrian Sampson
00829c1a6c
use PathQueries declaratively
...
Now PathQuery is just another type-based query, just like NumericQuery.
2014-01-20 18:01:29 -08:00
Adrian Sampson
4026c4b707
add query field to types
...
This is starting to get at the heart of the matter: now each type gets to
declare which Query subclass it wants to use, starting with NumericQuery.
2014-01-20 17:47:02 -08:00
Adrian Sampson
9ee4adc5e1
move remaining generic Query types to dbcore.query
...
NumericQuery is still broken. This, of course, is the whole reason for the
change.
2014-01-20 16:40:50 -08:00
Thomas Scholtes
712358fab4
Keep old pluginpath mechanism for compatibility
2014-01-21 01:07:52 +01:00
Adrian Sampson
680524197c
new dbcore.query module
...
Splitting off the Query hierarchy for easier navigation.
2014-01-20 16:05:17 -08:00
Adrian Sampson
61b6f04036
tests: silence logging output
2014-01-20 15:58:33 -08:00
Adrian Sampson
72c6b6feba
reorganize dbcore into a package
2014-01-20 15:51:19 -08:00
Adrian Sampson
1f6c185378
header on dbcore.py
2014-01-20 15:47:20 -08:00
Adrian Sampson
77daa542c8
fix infinite-recursion regression in rewrite
...
Reported by axion on IRC.
2014-01-20 11:39:33 -08:00
Adrian Sampson
9162267960
Merge pull request #500 from geigerzaehler/logger_fix
...
Use default beets logger
2014-01-20 11:19:36 -08:00
Thomas Scholtes
1f53b658bb
Use default beets logger
2014-01-20 19:25:55 +01:00
Thomas Scholtes
a4b6976755
Make plugin path configuration useable
2014-01-20 17:39:46 +01:00
Thomas Scholtes
3b39e0f193
Test plugin commands from plugin paths
2014-01-20 17:39:46 +01:00
Adrian Sampson
54763878d7
Merge pull request #498 from geigerzaehler/master
...
Running `./setup.py test` works again
2014-01-20 08:05:11 -08:00
Thomas Scholtes
34f113bbcf
Running ./setup.py test works again
2014-01-20 14:33:40 +01:00
Adrian Sampson
dffa13e0a4
fix migration field detection
2014-01-18 17:01:10 -08:00
Adrian Sampson
a0ffde7114
a bit more dbcore testing
2014-01-18 16:49:22 -08:00