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

Class StorageSystem

source code

object --+        
         |        
    Object --+    
             |    
     Container --+
                 |
                StorageSystem

Heterogeneous collection of storage media. May only be child of the root container or another StorageSystem container.

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=[], storage_total=0, storage_used=0, storage_free=0, storage_max_partition=0, storage_medium='')
Constructor for the StorageSystem 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 Container: add_container, add_item

Inherited from Container (private): _get_child_count, _set_child_count

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' %(Container.upnp_class, '.storageSystem')

Inherited from Container: child_count, create_class, element_name

Inherited from Container (private): _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=[], storage_total=0, storage_used=0, storage_free=0, storage_max_partition=0, storage_medium='')
(Constructor)

source code 

Constructor for the StorageSystem 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
  • storage_total (signed long) - total capacity, in bytes, of the storage represented by the container. Value -1 is reserved to indicate that the capacity is unknown
  • storage_used (signed long) - combined space, in bytes, used by all the objects held in the storage represented by the container. Value -1 is reserved to indicate that the space is unknown
  • storage_free (signed long) - total free capacity, in bytes, of the storage represented by the container. Value -1 is reserved to indicate that the capacity is unknown
  • storage_max_partition (signed long) - largest amount of space, in bytes, available for storing a single resource in the container. Value -1 is reserved to indicate that the capacity is unknown
  • storage_medium (string) - indicates the type of storage used for the content. Possible values are enumerated on STORAGE_MEDIUM_* variables
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