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

Class Object

source code

object --+
         |
        Object

Root class and most basic class of the content directory class hierarchy.

Instance Methods [hide private]
 
__init__(self, id='', parent_id='', title='', restricted=False, creator='', write_status=WRITE_STATUS_NOT_WRITABLE)
Constructor for the Object class.
source code
 
add_resource(self, res)
Adds a resource to the object.
source code
 
from_element(self, elt)
Sets the object properties from an element.
source code
 
to_didl_element(self)
Returns an Element based on this Resource.
source code
 
to_string(self)
String representation of this object.
source code

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

Class Methods [hide private]
 
from_string(cls, xml_string)
Returns an instance generated from a xml string.
source code
Class Variables [hide private]
  upnp_class = 'object'
  element_name = 'object'
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)
(Constructor)

source code 

Constructor for the Object 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
Overrides: object.__init__