Package musicbrainz2 :: Module webservice :: Class TrackFilter
[frames | no frames]

Type TrackFilter

object --+    
         |    
   IFilter --+
             |
            TrackFilter


A filter for the track collection.
Method Summary
  __init__(self, title, artistName, artistId, releaseTitle, releaseId, duration, puid, limit)
Constructor.
  createParameters(self)
Create a list of query parameters.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

__init__(self, title=None, artistName=None, artistId=None, releaseTitle=None, releaseId=None, duration=None, puid=None, limit=None)
(Constructor)

Constructor.

If artistId, releaseId or puid are set, only tracks matching those IDs are returned.

The server will ignore artistName and releaseTitle if artistId or ${releaseId} are set respectively.
Parameters:
title - a string containing the track's title
artistName - a string containing the artist's name
artistId - a string containing the artist's ID
releaseTitle - a string containing the release's title
releaseId - a string containing the release's title
duration - the track's length in milliseconds
puid - a string containing a PUID
limit - the maximum number of releases to return
Overrides:
__builtin__.object.__init__

createParameters(self)

Create a list of query parameters.

This method creates a list of (parameter, value) tuples, based on the contents of the implementing subclass. parameter is a string containing a parameter name and value an arbitrary string. No escaping of those strings is required.
Returns:
a sequence of (key, value) pairs
Overrides:
musicbrainz2.webservice.IFilter.createParameters (inherited documentation)

Generated by Epydoc 2.1 on Sat Aug 26 18:34:32 2006 http://epydoc.sf.net