示例#1
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)
示例#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)
示例#3
0
 def configure(self, config):
     set_attribute(self,'log_multiple',1,config,int)
     set_attribute(self,'timeout',60,config,int)
     set_attribute(self,'connection_node','/services/network',config)
     set_attribute(self,'connection_attempts',3,config,int)
     Exporter.configure(self, config)
 def configure(self, config):
     set_attribute(self, 'log_multiple', 1, config, int)
     set_attribute(self, 'timeout', 60, config, int)
     set_attribute(self, 'connection_node', '/services/network', config)
     set_attribute(self, 'connection_attempts', 3, config, int)
     Exporter.configure(self, config)
示例#5
0
 def configure(self,config):
     set_attribute(self,'debug',0,config,as_boolean)
     set_attribute(self,'column','entry',config)
     set_attribute(self,'multi_threaded',1,config,as_boolean)
     Exporter.configure(self,config)
示例#6
0
 def configure(self, config):
     set_attribute(self, 'debug', 0, config, as_boolean)
     set_attribute(self, 'column', 'entry', config)
     set_attribute(self, 'multi_threaded', 1, config, as_boolean)
     Exporter.configure(self, config)