Use elif to prevent one test

This commit is contained in:
Cédric Krier committed 2008-07-22 10:09:18 +02:00
1 parent f367497e02
commit d2e98c40b8
1 file changed
+1 -1
+1 -1
View File
@@ -255,7 +255,7 @@ class Wizard(object):
res['fields'] = fields
res['arch'] = arch
res['state'] = button_list
if result_def['type'] == 'choice':
elif result_def['type'] == 'choice':
next_state = getattr(self, result_def['next_state'])(cursor, user,
data, context)
if next_state == 'end':