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

Class Container

source code

object --+    
         |    
    Object --+
             |
            Container

An object that can contain other objects.

Instance Methods [hide private]
 
__init__(self, id='', parent_id='', title='', restricted=False, creator='', write_status=WRITE_STATUS_NOT_WRITABLE, searchable=True, search_classes=[], create_classes=[])
Constructor for the Container class.
source code
 
_get_child_count(self) source code
 
_set_child_count(self, c) source code
 
from_element(self, elt)
Sets Container attributes from an Element.
source code
 
to_didl_element(self)
Creates Element from this Container.
source code
 
add_item(self, item)
Adds a item to the container.
source code
 
add_container(self, c)
Adds a container to the container.
source code

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' %(Object.upnp_class, '.container')
  element_name = 'container'
  create_class = None
  _count = 0
  child_count = property(_get_child_count, _set_child_count)
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, searchable=True, search_classes=[], create_classes=[])
(Constructor)

source code 

Constructor for the Container 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
  • searchable (bool) - if True, Search action can be performed upon the container
  • search_classes (list) - list of SearchClass objects
  • create_classes (list) - list of CreateClass objects
Overrides: object.__init__

from_element(self, elt)

source code 

Sets Container attributes from an Element.

Overrides: Object.from_element

to_didl_element(self)

source code 

Creates Element from this Container.

Overrides: Object.to_didl_element