[web2py] show_if issue

2016-07-24 Thread Sneka R
Can I use show_if for 2 tables? For example: db.table2.field.show_if = (db.table1.box==True) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received

[web2py] Re: show_if logical operators

2016-07-24 Thread SR
This should work: db.mytable.roles.show_if = (db.mytable.name.contains('red')) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message

[web2py] Specific validation on custom auth user table

2016-07-24 Thread Morganti
Hello, I am new in python and web2py also. I tryed to create a custom auth because I have a project and it is needing a lot validation on user creation action. I need to validate the birthdate and it is needing to be >= 18 from today. So, I tried to create a requires like:

[web2py] web2py and sparkpost : :Mail.send failure:SMTP AUTH extension not supported by server

2016-07-24 Thread icodk
I try to use sparkpost with web2py. However I get the following error: WARNING:web2py:Mail.send failure:SMTP AUTH extension not supported by server. More info: 1. I can successfully send mails with python so my API key and domain settings in sparkpost are set right. 2. In web2py I use the

[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