Package musicbrainz2 :: Module model :: Class ReleaseEvent
[frames | no frames]

Type ReleaseEvent

object --+
         |
        ReleaseEvent


A release event, indicating where and when a release took place.

All country codes used must be valid ISO-3166 country codes (i.e. 'DE', 'UK' or 'FR'). The dates are strings and must have the format 'YYYY', 'YYYY-MM' or 'YYYY-MM-DD'.
Method Summary
  __init__(self, country, dateStr)
Constructor.
  getCountry(self)
Returns the country a release took place.
  getDate(self)
Returns the date a release took place.
  setCountry(self, country)
Sets the country a release took place.
  setDate(self, dateStr)
Sets the date a release took place.
    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
  country: The country a release took place.
  date: The date a release took place.

Method Details

__init__(self, country=None, dateStr=None)
(Constructor)

Constructor.
Parameters:
country - a string containing an ISO-3166 country code
dateStr - a string containing a date string
Overrides:
__builtin__.object.__init__

getCountry(self)

Returns the country a release took place.
Returns:
a string containing an ISO-3166 country code, or None

Note: Due to a server limitation, the web service does not return country IDs for release collection queries. This only affects the musicbrainz2.webservice.Query.getReleases query.

See Also: musicbrainz2.utils.getCountryName

getDate(self)

Returns the date a release took place.
Returns:
a string containing a date

setCountry(self, country)

Sets the country a release took place.
Parameters:
country - a string containing an ISO-3166 country code

setDate(self, dateStr)

Sets the date a release took place.
Parameters:
dateStr - a string containing a date

Property Details

country

The country a release took place.
Get Method:
getCountry(self)
Set Method:
setCountry(self, country)

date

The date a release took place.
Get Method:
getDate(self)
Set Method:
setDate(self, dateStr)

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