Re: [web2py] Re: Demo/dev server

2020-12-04 Thread Monte Milanuk
By any chance would you know how that part is accomplished - starting the web server (Rocket) from the gui control, then the framework? I understand the answer ultimately is going to be "read the code", but right now I'm not sure I'd know where to start looking. On Fri, Dec 4, 2020, 15:44 黄祥

[web2py] Re: Demo/dev server

2020-12-04 Thread 黄祥
the default web server shipped with Rocket web server its written on the right side of admin page : Running on Rocket 1.2.6 best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Demo/dev server

2020-12-04 Thread memi...@gmail.com
What does web2py use for the initial demo/dev server, that is controlled by the little gui startup app? -- 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) ---

Re: [web2py] Re: Conditional Fields & Validators

2020-12-04 Thread James O' Driscoll
Hey mate, I got around that specific validator, however the is_in_set validator causes the problem. (It’s needed to create the select field in HTML) I managed to get around it with onvalidation, doing the validation based on a state of the control but this is adding more logic on the backend

[web2py] Re: Conditional Fields & Validators

2020-12-04 Thread Leonel Câmara
You can change the field requires in the controller depending on whether the field should be shown doing something like this def index(): db.purchase.coupon_code.show_if = (db.purchase.have_coupon==True) if request.vars.have_coupon: db.purchase.coupon_code.requires =

[web2py] Re: How to customize email settings.

2020-12-04 Thread 'Annet' via web2py-users
Maybe auth.messages is what you're looking for: auth.messages.retrieve_username = 'Your user name: %(username)s' auth.messages.retrieve_username_subject = 'Username retrieval' auth.messages.reset_password = 'Click or copy/paste the following link https://'+request.env.http_host+URL('default',