summaryrefslogtreecommitdiff
path: root/bin/wizard/__init__.py
diff options
context:
space:
mode:
authorced <>2007-06-07 12:00:30 +0000
committerced <>2007-06-07 12:00:30 +0000
commit6f524993c38e6021dfbf246ee075f1571c8a6a00 (patch)
treeb9386f43bd0c9cbecbe6cc8b92313466586c0ec7 /bin/wizard/__init__.py
parentc10621cc83d603881d488ce27326ec7772627dff (diff)
KERNEL: add test for duplicate report and wizard
Remove/Fix all the duplicate report and wizard Don't instanciate auto report when update as there are already Instanciate auto report only if it don't exist in netsvc bzr revid: ced-f59b375f6fc502b8a3e6009162502e2becfc82f7
Diffstat (limited to 'bin/wizard/__init__.py')
-rw-r--r--bin/wizard/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/wizard/__init__.py b/bin/wizard/__init__.py
index 569ecddcd02..08ff36574b4 100644
--- a/bin/wizard/__init__.py
+++ b/bin/wizard/__init__.py
@@ -43,6 +43,7 @@ class interface(netsvc.Service):
states = {}
def __init__(self, name):
+ assert not netsvc.service_exist('wizard.'+name), 'The wizard "%s" already exist!'%name
super(interface, self).__init__('wizard.'+name)
self.exportMethod(self.execute)
self.wiz_name = name