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

Class Movie

source code

object --+            
         |            
    Object --+        
             |        
          Item --+    
                 |    
         VideoItem --+
                     |
                    Movie

A movie representation.

Instance Methods [hide private]
 
__init__(self, id='', parent_id='', title='', restricted=False, creator='', write_status=WRITE_STATUS_NOT_WRITABLE, ref_id='', genres=[], long_description='', producers=[], rating='', actors=[], directors=[], description='', publishers=[], language='', relations=[], storage_medium='', dvd_region_code='', channel_name='', scheduled_start_time='', scheduled_end_time='')
Constructor for the Movie class.
source code
 
from_element(self, elt)
Sets Movie properties and attributes from an element.
source code
 
to_didl_element(self)
Create Element from this Movie.
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' %(VideoItem.upnp_class, '.movie')

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='', genres=[], long_description='', producers=[], rating='', actors=[], directors=[], description='', publishers=[], language='', relations=[], storage_medium='', dvd_region_code='', channel_name='', scheduled_start_time='', scheduled_end_time='')
(Constructor)

source code 

Constructor for the Movie 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) - list of genre titles that apply to this item
  • long_description (string) - long description
  • producers (list) - list of producers
  • rating (string) - rating of the object's resource
  • actors (list) - list of actors
  • directors (list) - list of directors
  • description (string) - short description
  • publishers (list) - list of publisher names
  • language (string) - main language of the video
  • relations (list) - list of related resource names
  • storage_medium (string) - indicates the type of storage used for the content. Possible values are enumerated on STORAGE_MEDIUM_* variables
  • dvd_region_code (string) - region code of the DVD disc
  • channel_name (string) - identification of channel
  • scheduled_start_time (string) - start time of a schedule program, ISO 8601, form yyyy-mm-ddThh:mm:ss
  • scheduled_end_time (string) - end time of a schedule program, ISO 8601, form yyyy-mm-ddThh:mm:ss
Overrides: object.__init__

from_element(self, elt)

source code 

Sets Movie properties and attributes from an element.

Overrides: Object.from_element

to_didl_element(self)

source code 

Create Element from this Movie.

Overrides: Object.to_didl_element