summaryrefslogtreecommitdiff
path: root/bin/wizard/__init__.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@tinyerp.com>2010-01-29 11:17:12 +0100
committerChristophe Simonis <chs@tinyerp.com>2010-01-29 11:17:12 +0100
commitcb307f9213d43e97c53b6dd4559a3dbf45f104e7 (patch)
tree5e1936f9a1878d6067913f68c4bfe532f9193522 /bin/wizard/__init__.py
parent75865c816159bbb5f689ed9774ca1c6e8e61d603 (diff)
[IMP] rename Service.service_exist to Service.exits (classmethod)
bzr revid: chs@tinyerp.com-20100129101712-ok7fd5y0hnow5fds
Diffstat (limited to 'bin/wizard/__init__.py')
-rw-r--r--bin/wizard/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/wizard/__init__.py b/bin/wizard/__init__.py
index 72811589300..9e9f99397f4 100644
--- a/bin/wizard/__init__.py
+++ b/bin/wizard/__init__.py
@@ -41,13 +41,13 @@ class except_wizard(Exception):
class interface(netsvc.Service):
states = {}
-
+
def __init__(self, name):
- assert not self.service_exist('wizard.'+name), 'The wizard "%s" already exists!'%name
+ assert not self.exists('wizard.'+name), 'The wizard "%s" already exists!' % (name,)
super(interface, self).__init__('wizard.'+name)
self.exportMethod(self.execute)
self.wiz_name = name
-
+
def translate_view(self, cr, node, state, lang):
if node.get('string'):
trans = translate(cr, self.wiz_name+','+state, 'wizard_view', lang, node.get('string').encode('utf8'))