Esempio n. 1
0
 def configure( self, config_dict ):     
     ConfigurableNode.configure( self, config_dict )
     set_attribute( self, 'enable', 0, config_dict, int )
     set_attribute( self, 'debug', 0, config_dict, int )
     
     set_attribute( self, 'ddns_service', 0, config_dict )
     set_attribute( self, 'ddns_acct', 0, config_dict )
     set_attribute( self, 'ddns_pswd', 0, config_dict )
     set_attribute( self, 'host_name', 0, config_dict )
     map_to_attribute( self, 'period', 0, config_dict, map_to_seconds )
Esempio n. 2
0
 def configure(self, config):
     map_to_attribute(self, "period", 900, config, map_to_seconds)
     if self.period == 0:
         raise EInvalidValue("period", self.period, "Export period cannot be 0")
     set_attribute(self, "debug", 0, config, as_boolean)
     set_attribute(self, "synchronize_on", "00:00", config)
     set_attribute(self, "timeout", 60, config, int)
     set_attribute(self, "connection_node", "/services/network", config)
     set_attribute(self, "connection_attempts", 3, config, int)
     set_attribute(self, "always_export", 0, config, as_boolean)
     set_attribute(self, "breakup_on_period", 0, config, as_boolean)
     Exporter.configure(self, config)
     self._time = _TimeStore(self)
Esempio n. 3
0
 def configure(self, config):
     map_to_attribute(self, 'period', 900, config, map_to_seconds)
     if self.period == 0:
         raise EInvalidValue('period', self.period,
                             'Export period cannot be 0')
     set_attribute(self, 'debug', 0, config, as_boolean)
     set_attribute(self, 'synchronize_on', '00:00', config)
     set_attribute(self, 'timeout', 60, config, int)
     set_attribute(self, 'connection_node', '/services/network', config)
     set_attribute(self, 'connection_attempts', 3, config, int)
     set_attribute(self, 'always_export', 0, config, as_boolean)
     set_attribute(self, 'breakup_on_period', 0, config, as_boolean)
     Exporter.configure(self, config)
     self._time = _TimeStore(self)