def SetOption(self, key, value, overwrite = True):
		where = self.db.options.key == key
		if self.db( where ).count() > 0:
			if overwrite:
				self.db( where ).update( value = value )
		else:
			self.db.options.insert( key = key, value = value )
		self.db.commit()
dataset/ETHPy150Open uwdata/termite-data-server/server_src/modules/db/Corpus_DB.py/Corpus_DB.SetOption/original