22 |
# form/WizardRunner.py |
# form/WizardRunner.py |
23 |
# |
# |
24 |
# DESCRIPTION: |
# DESCRIPTION: |
25 |
# Creates a "Form" instance |
# Runs a form "wizard" |
26 |
# |
# |
27 |
# NOTES: |
# NOTES: |
28 |
|
# Adds Prepositioning Template support to the base WizardRunner |
29 |
# |
# |
30 |
|
|
31 |
from gnue.designer.TemplateParser import WizardRunner as BaseWizardRunner |
from gnue.designer.TemplateParser import WizardRunner as BaseWizardRunner |
32 |
import TemplateSupport |
import TemplateSupport |
33 |
|
from gnue.common.events import Event |
34 |
|
|
35 |
class WizardRunner(BaseWizardRunner): |
class WizardRunner(BaseWizardRunner): |
36 |
|
|
45 |
|
|
46 |
|
|
47 |
def __run(self, event): |
def __run(self, event): |
48 |
|
self.instance.dispatchEvent(Event('BeginWizard', |
49 |
|
template=self.template)) |
50 |
self.instance.visualEditor.startPrePositioningTemplate(self.template) |
self.instance.visualEditor.startPrePositioningTemplate(self.template) |