[dialogwizard,gest_crans2] on utilise True et Flase pour cocher

Ignore-this: c1a8930338b851e26506652dd09db5d8

darcs-hash:20090916190224-bd074-087e2f6b311e24d212376f10e3fa45a6d151ab01.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-09-16 21:02:24 +02:00
parent 42b74ec0e3
commit a62d0a2257
3 changed files with 37 additions and 26 deletions

View file

@ -90,15 +90,15 @@ def unit_scenario():
class Running:
u"""To run scenarios"""
env = {}
defaults = {}
steps = None
stack = None
def __init__(self, scenario):
def __init__(self, scenario, env = {}):
if not isinstance(scenario, Scenario):
raise TypeError("Can only run Scenarios")
accu = scenario.steps
self.env = env
# To avoid brain spots on the walls, we shall reverse the list
# of steps.