Beispiel #1
0
	def configure(self):
		"""
		Configure the DatabseAgent from GlobalConfiguration.
		"""
		conf = GlobalConfiguration.get(self.__class__, {})
		ConnectionUtil.configure('raw', conf)
		self.dao = DocumentDAO()
Beispiel #2
0
	def configure(self):
		" Load the configuration for this agent. "
		conf = GlobalConfiguration.get(self.__class__, {})
		self.base_path = conf.get('base_path', '/tmp')
		self.on_duplicate = conf.get('on_duplicate', FileSystemAgent.SKIP)