improved form and wizard plugins
[myslice.git] / plugins / wizard / __init__.py
index 74ea3a9..672321c 100644 (file)
@@ -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']