diff --git a/branches/ucs-3.2/ucs-3.2-2/base/univention-config-registry/python/univention/config_registry/handler.py b/branches/ucs-3.2/ucs-3.2-2/base/univention-config-registry/python/univention/config_registry/handler.py index da144fa..a4285ad 100644 --- a/branches/ucs-3.2/ucs-3.2-2/base/univention-config-registry/python/univention/config_registry/handler.py +++ b/branches/ucs-3.2/ucs-3.2-2/base/univention-config-registry/python/univention/config_registry/handler.py @@ -444,6 +444,14 @@ class ConfigHandlerScript(ConfigHandler): super(ConfigHandlerScript, self).__init__() self.script = script + def __hash__(self): + """Return unique hash.""" + return hash(self.script) + + def __cmp__(self, other): + """Compare this to other handler.""" + return cmp(self.script, other.script) + def __call__(self, args): """Call external programm after change.""" _ucr, changed = args @@ -459,6 +467,14 @@ class ConfigHandlerModule(ConfigHandler): super(ConfigHandlerModule, self).__init__() self.module = module + def __hash__(self): + """Return unique hash.""" + return hash(self.module) + + def __cmp__(self, other): + """Compare this to other handler.""" + return cmp(self.module, other.module) + def __call__(self, args): """Call python module after change.""" ucr, changed = args