X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fwizard%2F__init__.py;h=672321c495f9bb9d5621523162b2fc705393e770;hb=2a5654f70a3fdb0ca45382619098a5bea8913bf0;hp=74ea3a972d06dfb9ae9dfc82ea2d6e6f78458943;hpb=af7c18aea18be19b7227b25a019af4d257cee7dd;p=myslice.git diff --git a/plugins/wizard/__init__.py b/plugins/wizard/__init__.py index 74ea3a97..672321c4 100644 --- a/plugins/wizard/__init__.py +++ b/plugins/wizard/__init__.py @@ -7,26 +7,6 @@ class Wizard(Composite): Composite.__init__(self, *args, **kwargs) self.validate_step_js = [] - # This, as well as the setting passing code, requires all step to be passed at init :/ - for i, son in enumerate(self.sons): - try: - js = son.get_validation_js() - js_name = "%s_validate_step_%d" % (self.domid.replace('-', '_'), i) - self.add_js_chunks(""" - %s = function() { - %s - } - """ % (js_name, js)) - except Exception, e: - js_name = 'null' - self.validate_step_js.append(js_name) - -# self.add_js_chunks(""" -# %s = function() { -# %s -# } -# """ % (js_name, js)) - def export_json_settings(self): # We need initialization, even though we are not associated with a query return True @@ -41,4 +21,4 @@ class Wizard(Composite): return "wizard.html" # the list of things passed to the js plugin - def json_settings_list (self): return ['plugin_uuid', 'start_step', 'validate_step_js'] + def json_settings_list (self): return ['plugin_uuid', 'start_step']