Home | Trees | Index | Help |
---|
Package musicbrainz2 :: Module webservice :: Class IFilter |
|
object
--+
|
IFilter
ArtistFilter
,
ReleaseFilter
,
TrackFilter
,
UserFilter
A filter for collections.
This is the interface all filters have to implement. Filter classes are initialized with a set of criteria and are then applied to collections of items. The criteria are usually strings or integer values, depending on the filter.
Note that all strings passed to filters should be unicode strings (python typeunicode
). Standard strings are converted to
unicode internally, but have a limitation: Only 7 Bit pure ASCII
characters may be used, otherwise a UnicodeDecodeError
is
raised.
Method Summary | |
---|---|
Create a list of query parameters. | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
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.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 | http://epydoc.sf.net |