__init__(self,
id='',
parent_id='',
title='',
restricted=False,
creator='',
write_status=WRITE_STATUS_NOT_WRITABLE,
ref_id='',
genres=[],
description='',
long_description='',
publishers=[],
language='',
relations=[],
rights=[],
artists=[],
albums=[],
original_track_number='',
playlists=[],
storage_medium='',
contributors=[],
date='')
(Constructor)
| source code
|
Constructor for the Item class.
- Parameters:
id (string) - unique identifier for the object
parent_id (string) - id of object's parent
title (string) - name of the object
restricted (bool) - True if only CDS can modify the object
creator (string) - content creator or owner
write_status (integer) - modifiability of the resources of this object. Integer parameter
based on WRITE_STATUS_* constants
ref_id (string) - id property of the item being referred to
genres (list) - genres to which the object belongs
description (string) - description
long_description (string) - long description
publishers (list) - entities responsible for making the resource available
language (string) - language of the resource
relations (list) - related resources
rights (list) - rights held in and over the resource
artists (list) - artists to which the object belongs
albums (list) - albums to which the object belongs
original_track_number (int) - original track number on an Audio CD or other medium
playlists (list) - names of the playlists to which the item belongs
storage_medium (string) - indicates the type of storage used for the content. Possible
values are enumerated on STORAGE_MEDIUM_* variables
contributors (list) - entities responsible for making contributions to the resource
date (string) - ISO 8601, form YYYY-MM-DD
- Overrides:
object.__init__
|