mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 00:53:08 +01:00
The initial idea for this refactor was motivated by the need to make PluginQuery.match() have the same method signature as the match() methods on other queries. That is, it needed to take an *item*, not the pattern and value. (The pattern is supplied when the query is constructed.) So it made sense to move the value-to-pattern code to a class method. But then I realized that all the other FieldQuery subclasses needed to do essentially the same thing. So I eliminated PluginQuery altogether and refactored FieldQuery to subsume its functionality. I then changed all the other FieldQuery subclasses to conform to the same pattern. This has the side effect of allowing different kinds of queries (even non-field queries) down the road. |
||
|---|---|---|
| .. | ||
| guides | ||
| plugins | ||
| reference | ||
| changelog.rst | ||
| conf.py | ||
| index.rst | ||
| Makefile | ||