Package brisa :: Package upnp :: Package didl :: Module didl_lite :: Class ImageItem
[hide private]
[frames] | no frames]

Class ImageItem

source code

object --+        
         |        
    Object --+    
             |    
          Item --+
                 |
                ImageItem

An image representation. Content that when rendered generates some image.

Instance Methods [hide private]
 
__init__(self, id='', parent_id='', title='', restricted=False, creator='', write_status=WRITE_STATUS_NOT_WRITABLE, ref_id='', long_description='', storage_medium='', rating='', description='', publishers=[], date='', rights=[])
Constructor for the ImageItem class.
source code
 
from_element(self, elt)
Sets the resource properties from an element.
source code
 
to_didl_element(self)
Returns an Element based on this Resource.
source code

Inherited from Item (private): _get_uri

Inherited from Object: add_resource, to_string

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from Object: from_string

Class Variables [hide private]
  upnp_class = '%s%s' %(Item.upnp_class, '.imageItem')

Inherited from Item: element_name, uri

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id='', parent_id='', title='', restricted=False, creator='', write_status=WRITE_STATUS_NOT_WRITABLE, ref_id='', long_description='', storage_medium='', rating='', description='', publishers=[], date='', rights=[])
(Constructor)

source code 

Constructor for the ImageItem 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
  • long_description (string) - long description
  • storage_medium (string) - indicates the type of storage used for the content. Possible values are enumerated on STORAGE_MEDIUM_* variables
  • rating (string) - rating of the object's resource
  • description (string) - description
  • publishers (list) - entities responsible for making the resource available
  • date (string) - ISO 8601, form YYYY-MM-DD
  • rights (list) - rights held in and over the resource
Overrides: object.__init__

from_element(self, elt)

source code 

Sets the resource properties from an element.

Overrides: Object.from_element

to_didl_element(self)

source code 

Returns an Element based on this Resource.

Overrides: Object.to_didl_element