View | Details | Raw Unified | Return to bug 35239
Collapse All | Expand All

(-)a/branches/ucs-3.2/ucs-3.2-2/base/univention-config-registry/python/univention/config_registry/handler.py (+16 lines)
 Lines 444-449   class ConfigHandlerScript(ConfigHandler): Link Here 
444
		super(ConfigHandlerScript, self).__init__()
444
		super(ConfigHandlerScript, self).__init__()
445
		self.script = script
445
		self.script = script
446
446
447
	def __hash__(self):
448
		"""Return unique hash."""
449
		return hash(self.script)
450
451
	def __cmp__(self, other):
452
		"""Compare this to other handler."""
453
		return cmp(self.script, other.script)
454
447
	def __call__(self, args):
455
	def __call__(self, args):
448
		"""Call external programm after change."""
456
		"""Call external programm after change."""
449
		_ucr, changed = args
457
		_ucr, changed = args
 Lines 459-464   class ConfigHandlerModule(ConfigHandler): Link Here 
459
		super(ConfigHandlerModule, self).__init__()
467
		super(ConfigHandlerModule, self).__init__()
460
		self.module = module
468
		self.module = module
461
469
470
	def __hash__(self):
471
		"""Return unique hash."""
472
		return hash(self.module)
473
474
	def __cmp__(self, other):
475
		"""Compare this to other handler."""
476
		return cmp(self.module, other.module)
477
462
	def __call__(self, args):
478
	def __call__(self, args):
463
		"""Call python module after change."""
479
		"""Call python module after change."""
464
		ucr, changed = args
480
		ucr, changed = args

Return to bug 35239