Exemplo n.º 1
0
	def keySave(self):
		config.plugins.growlee.save()
		if self["config"].isChanged():
			def doConnect(*args, **kwargs):
				growleeConnection.listen()

			d = growleeConnection.stop()
			if d is not None:
				d.addCallback(doConnect).addErrback(emergencyDisable)
			else:
				maybeConnect()

		self.saveAll()
		self.close()
Exemplo n.º 2
0
	def keySave(self):
		config.plugins.growlee.save()
		if self["config"].isChanged():
			def doConnect(*args, **kwargs):
				growleeConnection.listen()

			d = growleeConnection.stop()
			if d is not None:
				d.addCallback(doConnect).addErrback(emergencyDisable)
			else:
				maybeConnect()

		self.saveAll()
		self.close()