Package brisa :: Package upnp :: Package device :: Module service :: Class Service
[hide private]
[frames] | no frames]

Class Service

source code

              object --+    
                       |    
base_service.BaseService --+
                           |
                          Service

Instance Methods [hide private]
 
__init__(self, id, serv_type, url_base='', scpd_xml_filepath='', presentation_controller=None)
Constructor for the BaseService class.
source code
 
publish(self, webserver) source code
 
add_state_variable(self, state_variable)
Adds a service state variable.
source code
 
set_state_variable(self, name, value) source code
 
add_action(self, action) source code
 
start(self, *args, **kwargs) source code
 
_generate_xml(self) source code

Inherited from base_service.BaseService: get_actions, get_variables

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, serv_type, url_base='', scpd_xml_filepath='', presentation_controller=None)
(Constructor)

source code 

Constructor for the BaseService class.

Parameters:
  • serv_type - service type
  • url_base - base URL on the form schema://URL
Overrides: object.__init__
(inherited documentation)

add_state_variable(self, state_variable)

source code 

Adds a service state variable.

Parameters:
  • state_variable - the service state variable
Overrides: base_service.BaseService.add_state_variable
(inherited documentation)