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
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
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:
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
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
5 matches
Mail list logo