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

Type User

object --+
         |
        User


Represents a MusicBrainz user.
Method Summary
  __init__(self)
Constructor.
  addType(self, type_)
Add a type to the list of types.
  getName(self)
Returns the user name.
  getShowNag(self)
Returns true if a nag screen should be displayed to the user.
  getTypes(self)
Returns the types of this user.
  setName(self, name)
Sets the user name.
  setShowNag(self, value)
Sets the value of the nag screen flag.
    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
  name: The MusicBrainz user name.
  showNag: The value of the nag screen flag.
  types: The user's types.

Method Details

__init__(self)
(Constructor)

Constructor.
Overrides:
__builtin__.object.__init__

addType(self, type_)

Add a type to the list of types.
Parameters:
type_ - a string containing absolute URIs

See Also: getTypes

getName(self)

Returns the user name.
Returns:
a string containing the user name

getShowNag(self)

Returns true if a nag screen should be displayed to the user.
Returns:
True, False, or None

getTypes(self)

Returns the types of this user.

Most users' type list is empty. Currently, the following types are defined:
  • 'http://musicbrainz.org/ns/ext-1.0#AutoEditor'
  • 'http://musicbrainz.org/ns/ext-1.0#RelationshipEditor'
  • 'http://musicbrainz.org/ns/ext-1.0#Bot'
  • 'http://musicbrainz.org/ns/ext-1.0#NotNaggable'
Returns:
a list of strings containing absolute URIs

setName(self, name)

Sets the user name.
Parameters:
name - a string containing the user name

setShowNag(self, value)

Sets the value of the nag screen flag.

If set to True,
Parameters:
value - True or False

See Also: getShowNag


Property Details

name

The MusicBrainz user name.
Get Method:
getName(self)
Set Method:
setName(self, name)

showNag

The value of the nag screen flag.
Get Method:
getShowNag(self)
Set Method:
setShowNag(self, value)

types

The user's types.
Get Method:
getTypes(self)

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