Bruno Rocha avatar Bruno Rocha committed 610f29d

Solved issue with autocomplete widget Thanks to jredrejo

Comments (0)

Files changed (1)

modules/plugin_PowerFormWizard.py

         
         self.record = record
 
-        from gluon.storage import Storage
-        self.custom = Storage() # Needed to silence errors, but Custom Forms are not allowed!
+        #from gluon.storage import Storage
+        #self.custom = Storage() # Needed to silence errors, but Custom Forms are not allowed!
 
         # NEEDED TO CREATE A SQLFORM OBJECT HERE TO EXTRACT DOM ELEMENTS, HOW TO DO BETTER?
         form = SQLFORM(self.table, formstyle=self.formstyle, **attributes)
         
 
         self.p_form = form
+        self.custom = form.custom
+        self.field_parent = form.field_parent
         self.p_steps = steps # [{'title':'Step Title', 'fields':['fieldname1','fieldname2']}]
         self.p_tablename = form.table._tablename
         self.p_attributes = form.attributes
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.