[web2py] Re: SQLFORM.accepts() bug - custom widget looses formstyle added classes

2016-07-24 Thread Eliot Simcoe
As a workaround I have duck punched the SQLFORM.accepts() method to resolve the issue - however it is a kludge and I would prefer not to do this. Please see my code below. ### # Fix SQLFORM

[web2py] SQLFORM.accepts() bug - custom widget looses formstyle added classes

2016-07-23 Thread Eliot Simcoe
I have a custom currency widget (that renders a text field with a '$' at the front of it) and I'm using the bootstrap3_inline formstyle for generating forms using SQLFORM. The formstye is executed before SQLFORM.accepts(). If an error occurs in my form, the block of code in

[web2py] Re: SQLForm.factory Pre-Submit Processing Using JavaScript

2016-04-26 Thread Eliot Simcoe
In case anyone else ever has this problem, I will post my own solution. Web2Py traps all form submissions in web2py.js. To override this behaviour we need to add the "no_trap" class to the form declaration: single_payment_form = SQLFORM.factory( Field('tenant_name','string',

[web2py] SQLForm.factory Pre-Submit Processing Using JavaScript

2016-04-25 Thread Eliot Simcoe
I have a component that has a payment form that uses the Authorize.net gateway. I want to be able to display a bootstrap modal dialog with payment confirmation information before the form is actually submitted, but after the user clicks the submit button. single_payment_form = SQLFORM.factory(

[web2py] File Upload Table

2015-12-05 Thread Eliot Simcoe
Hello World, I have a table named File is supposed to be referenced by other tables in an attempt to simulate the "upload' field type. This table is coupled with a Folder table and simulates a file system in the database. File Fields: Field('name', 'string', label=T("Name"),