From 52e8a6744633a9f547ea4a82949be398b6cab51b Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 29 Jan 2010 11:28:29 +0100 Subject: [PATCH] [IMP] add classmethod to remove a service bzr revid: chs@tinyerp.com-20100129102829-i68neaqgoxqkw6ud --- bin/netsvc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/netsvc.py b/bin/netsvc.py index 0961aa20366..b47faba823e 100644 --- a/bin/netsvc.py +++ b/bin/netsvc.py @@ -56,6 +56,11 @@ class Service(object): def exists(cls, name): return name in cls._services + @classmethod + def remove(cls, name): + if cls.exits(name): + cls._services.pop(name) + def exportMethod(self, method): if callable(method): self._methods[method.__name__] = method