archipelagenthypervisorgeolocalization :: geoloc :: TNHypervisorGeolocalization :: Class TNHypervisorGeolocalization
[hide private]
[frames] | no frames]

Class TNHypervisorGeolocalization

source code

archipelcore.archipelPlugin.TNArchipelPlugin --+
                                               |
                                              TNHypervisorGeolocalization

This plugin allow to geolocalize the hypervisor.

Instance Methods [hide private]
 
__init__(self, configuration, entity, entry_point_group)
Initialize the module.
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
 
process_iq(self, conn, iq)
This method is invoked when a ARCHIPEL_NS_HYPERVISOR_GEOLOC IQ is received.
source code
 
iq_get(self, iq)
Return the geolocalization information.
source code
string
message_get(self, msg)
Return the geolocalization information asked by message.
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 module.

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_HYPERVISOR_GEOLOC IQ is received. It understands IQ of type:

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

iq_get(self, iq)

source code 

Return the geolocalization information.

Parameters:
  • iq (xmpp.Protocol.Iq) - the received IQ

message_get(self, msg)

source code 

Return the geolocalization information asked by message.

Parameters:
  • msg (xmpp.Protocol.Message) - the received message
Returns: string
string containing the answer to send