archipelcentralagentplatformrequest :: platformrequests :: TNPlatformRequests :: Class TNPlatformRequests
[hide private]
[frames] | no frames]

Class TNPlatformRequests

source code

archipelcore.archipelPlugin.TNArchipelPlugin --+
                                               |
                                              TNPlatformRequests

Instance Methods [hide private]
 
__init__(self, configuration, entity, entry_point_group)
Initialize the plugin.
source code
 
register_handlers(self)
This method will be called by the plugin user when it will be necessary to register module for listening to stanza.
source code
 
unregister_handlers(self)
Unregister the handlers.
source code
 
load_computing_unit(self)
Loads the external computing unit.
source code
 
process_iq(self, conn, iq)
This method is invoked when a ARCHIPEL_NS_PLATFORM IQ is received.
source code
xmpp.Protocol.Iq
iq_request(self, iq)
Process platform request.
source code
Static Methods [hide private]
dict
plugin_info()
Return informations about the plugin.
source code
Method Details [hide private]

__init__(self, configuration, entity, entry_point_group)
(Constructor)

source code 

Initialize the plugin.

Parameters:
  • configuration (Configuration object) - the configuration
  • entity (TNArchipelEntity) - the entity that owns the plugin
  • entry_point_group (string) - the group name of plugin entry_point
Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.__init__

register_handlers(self)

source code 

This method will be called by the plugin user when it will be necessary to register module for listening to stanza.

Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.register_handlers

unregister_handlers(self)

source code 

Unregister the handlers.

Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.unregister_handlers

plugin_info()
Static Method

source code 

Return informations about the plugin.

Returns: dict
dictionary contaning plugin informations
Overrides: archipelcore.archipelPlugin.TNArchipelPlugin.plugin_info

process_iq(self, conn, iq)

source code 

This method is invoked when a ARCHIPEL_NS_PLATFORM IQ is received. It understands IQ of type:

  • request
Parameters:
  • conn (xmpp.Dispatcher) - ths instance of the current connection that send the stanza
  • iq (xmpp.Protocol.Iq) - the received IQ

iq_request(self, iq)

source code 

Process platform request.

Parameters:
  • iq (xmpp.Protocol.Iq) - the received IQ
Returns: xmpp.Protocol.Iq
a ready to send IQ containing the result of the action