Package musicbrainz2 :: Module wsxml :: Class ReleaseResult
[frames | no frames]

Type ReleaseResult

object --+
         |
        ReleaseResult


Represents a release result.

A ReleaseResult consists of a score and a release. The score is a number between 0 and 100, where a higher number indicates a better match.
Method Summary
  __init__(self, release, score)
  getRelease(self)
Returns a Release object.
  getScore(self)
Returns the result score.
  setRelease(self, release)
  setScore(self, score)
    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)

Property Summary
  release: A Release object.
  score: The relevance score.

Method Details

getRelease(self)

Returns a Release object.
Returns:
a musicbrainz2.model.Release object

getScore(self)

Returns the result score.

The score indicates how good this result matches the search parameters. The higher the value, the better the match.
Returns:
an int between 0 and 100 (both inclusive), or None

Property Details

release

A Release object.
Get Method:
getRelease(self)
Set Method:
setRelease(self, release)

score

The relevance score.
Get Method:
getScore(self)
Set Method:
setScore(self, score)

Generated by Epydoc 2.1 on Wed Dec 20 18:19:28 2006 http://epydoc.sf.net