Commit graph

60 commits

Author SHA1 Message Date
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
Stig Inge Lea Bjørnsen
6ed430d730 Send a plugin event when a file is copied.
I use this event in a plugin that needs to know which file outside the
library an item was copied from during import.
2014-01-14 21:53:12 +01:00
Adrian Sampson
3d5d071fe7 fix docs to refer to dbcore module 2014-01-13 17:25:07 -08:00
Romuald Conty
f0483ccd85 doc: add documentation about 'item_removed' event 2014-01-10 01:23:47 +00:00
Adrian Sampson
b38812b452 collapse model base classes
The artificial separation was hurting legibility/maintainability more than it
was helping.
2013-12-24 15:20:52 -08:00
Pedro Silva
7299ed24c6 Add vararg_callback utility function to beets.ui
Optparse doesn't support argparse nargs='+' style arguments.  This patch
adds a callback utility function that allows that idiom. The function is
taken from the page at
http://docs.python.org/2/library/optparse.html#callback-example-6-variable-arguments.

Here's an example of how to use it:

    from beets.ui import vararg_callback
    parser.add_option("-c", "--callback", dest="vararg_attr",
                      action="callback", callback=vararg_callback)
2013-10-22 18:11:24 +02:00
Peter Schnebel
c82cd29081 requires 'self' 2013-10-18 14:10:16 +02:00
Adrian Sampson
20bdffcbd6 API docs: slightly less skeletal 2013-10-09 01:09:02 -07:00
Adrian Sampson
a6bf633355 skeletal autodoc-based API docs 2013-09-24 20:57:24 -07:00
Adrian Sampson
e6725b6973 docs: reorg plugins section; add dev section
--HG--
rename : docs/plugins/writing.rst => docs/dev/plugins.rst
2013-09-24 20:33:46 -07:00