[web2py] Re: Why not to mention support to Python3 on the official sites main page?

2018-07-18 Thread Anthony
> > Do you have tested python3? > Note, we do have passing tests, at least through Python 3.6: https://travis-ci.org/web2py/web2py -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Why not to mention support to Python3 on the official sites main page?

2018-07-18 Thread Anthony
> > I can testify that perfomance improoves a lot. Whats lacking for official > support announcement? > I believe support is official -- we just need to make the updates to the site and documentation. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: OperationalError when using datetime

2018-07-18 Thread Anthony
On Wednesday, July 18, 2018 at 1:08:24 AM UTC-4, Maurice Waka wrote: > > I have two problems; > >1. When I successfully submit a form and try to retrieve the text for >processing in the controller, I tend to get the previously submitted text >and not the latest. > > What do you mean

[web2py] Re: BaseException: domain not in config []

2018-07-18 Thread Anthony
You're view has this line: if host_name in myconf.take('domain.name'): But as the traceback indicated, there is no "domain" section in the configuration file. Anthony On Wednesday, July 18, 2018 at 6:08:14 PM UTC-4, Valdeck Rowe wrote: > > Here is the entire user.html file just in case it

[web2py] Re: SQLFORM.grid on page with custom request.vars

2018-07-18 Thread watr
I'm on the latest master in Github (2018). I am currently using the work-around below to fix the issue on all my pages, simply by putting this line in my layout.html (which all my views import): path = window.location.pathname; $(".web2py_console ").find('form').attr("action", path);

[web2py] Re: SQLFORM.grid on page with custom request.vars

2018-07-18 Thread Leonel Câmara
What web2py version are you using? That was supposedly fixed here: https://github.com/web2py/web2py/pull/569 -- 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)

[web2py] SQLFORM.grid on page with custom request.vars

2018-07-18 Thread watr
I find SQLFORM.grid search doesn't work on a page with custom request.vars. Is there a way to fix the grid so it works? Thanks, -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: BaseException: domain not in config []

2018-07-18 Thread Valdeck Rowe
Here is the entire user.html file just in case it proves helpful: {{#extend 'layout.html'}} https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css; integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> #web2py_user_form {

[web2py] Re: BaseException: domain not in config []

2018-07-18 Thread Valdeck Rowe
Appconfig.ini [environment] type = test_ ; dev_, test_, stage_, prod_ ; Admin user [admin_user] username = admin password = password email= ad...@domain.com first_name = Admin last_name= User auth_groups = super admin, admin, logistics, warehouse ; App configuration

[web2py] BaseException: domain not in config []

2018-07-18 Thread Anthony
We need to see your appconfig.ini and the line in user.html that is presumably trying to access a setting from the config object. The error indicates it's not finding what it's looking for. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] BaseException: domain not in config []

2018-07-18 Thread Valdeck Rowe
Hi, I set web2py up on a test server with the app I'd built for UAT purposes. I had a UAT session with a user without any issues. Everything has been running fine for a few days and then today when another user is to login and test, they complain that their password doesn't work. I go in

[web2py] This one is a doozy, weird, never before seen error

2018-07-18 Thread Valdeck Rowe
Hi, I set web2py up on a server with the app I built. I had a UAT session with a user without any issues. Everything has been running fine for a few days and then today when another user is to login and test, they complain that their password doesn't work. I go in reset the password, logout

[web2py] Re: empty field saved as NULL or ' '

2018-07-18 Thread Anthony
To add some detail, when values are passed to validators, the validator returns a tuple like (value, None) or (value, 'error message'), and the returned value can potentially be transformed by the validator (as in this case). Anthony On Wednesday, July 18, 2018 at 9:51:40 AM UTC-4, Leonel

[web2py] Re: empty field saved as NULL or ' '

2018-07-18 Thread Leonel Câmara
Nowadays I mostly use web2py's code as my documentation so I simply looked at the code for IS_EMPTY_OR in: https://github.com/web2py/web2py/blob/master/gluon/validators.py Of course I already suspected the problem was there which just comes from experience using and developing web2py. --

[web2py] Re: empty field saved as NULL or ' '

2018-07-18 Thread icodk
Thanks Where did you get it from ? On Wednesday, July 18, 2018 at 2:57:41 PM UTC+2, icodk wrote: > > I have the flowing two field definitions: > Field('code_1', default='', label=T("Code 1"), > requires=[IS_EMPTY_OR(IS_NOT_IN_DB(db, > 'product.code_1',error_message=T('Code 1 already in >

[web2py] Re: empty field saved as NULL or ' '

2018-07-18 Thread Leonel Câmara
You need to change your IS_EMPTY_OR from: IS_EMPTY_OR(IS_NOT_IN_DB(db, 'product.code_1',error_message=T('Code 1 already in use'),ignore_common_filters=False)) To IS_EMPTY_OR(IS_NOT_IN_DB(db, 'product.code_1',error_message=T('Code 1 already in use'),ignore_common_filters=False), null='')

[web2py] empty field saved as NULL or ' '

2018-07-18 Thread icodk
I have the flowing two field definitions: Field('code_1', default='', label=T("Code 1"), requires=[IS_EMPTY_OR(IS_NOT_IN_DB(db, 'product.code_1',error_message=T('Code 1 already in use'),ignore_common_filters=False)),IS_LENGTH(maxsize=15)]), Field('code_2', default='',label=T("Code 2")),