Пример #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()
Пример #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()