[ldap_crans.py] l'interface avec des dicos marche! même la copie mde dicos marche!
Ignore-this: 192f099c2b334df59cca5d73c12309d2 darcs-hash:20090929205903-bd074-77224dc37a11f4fe18a0dc2aac3edcefd7ef6c0d.gz
This commit is contained in:
parent
f5bae74159
commit
fd5cca07f2
4 changed files with 122 additions and 64 deletions
|
@ -14,7 +14,7 @@ def really_quit(dico):
|
|||
raise EndScenario("game over!", data = dico)
|
||||
|
||||
def error_handler(exc):
|
||||
dialog.Dialog().msgbox(str(exc), width=0, height =0, title = 'Erreur :')
|
||||
dialog.Dialog().msgbox(str(exc), widht=0, height =0, title = 'Erreur :')
|
||||
raise TryAgain()
|
||||
|
||||
class DialogStepGenerator:
|
||||
|
|
|
@ -118,7 +118,9 @@ class Running:
|
|||
if self.steps[0] == 'CASE' :
|
||||
switch, cases, fallback = self.steps[1]
|
||||
self.steps = self.steps[2]
|
||||
plan_steps = cases.get(switch(self.env), fallback).steps
|
||||
scenar = cases.get(switch(self.env), fallback)
|
||||
if scenar: plan_steps = scenar.steps
|
||||
else: plan_steps = None
|
||||
while plan_steps:
|
||||
self.steps = plan_steps[0], plan_steps[1], self.steps
|
||||
plan_steps = plan_steps[2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue