[web2py] web2py on azure

2018-06-22 Thread Yebach
Hello I am running a web2py app on azure, windows 10 64-bit The app works fine if I access it from the server's browser but when accessing it outside I am getting an error 403 - Forbidden. If I add app name to the end of the URL I get an error 404. Anybody had a problem like that? Any

[web2py] Re: How to get rid if the /init/default/ in the URL?

2018-06-22 Thread Alexander
You can solve this probem by adding the sitemap.xml and the robots.txt to the routes.examply.py in /home/your_app_name/application/init/routes.example.py routes_in=( ('.*:/favicon.ico','/init/static/favicon.ico'), ('.*:/robots.txt','/init/static/robots.txt'),

Re: [web2py] Required field label

2018-06-22 Thread Anthony
On Friday, June 22, 2018 at 10:30:33 AM UTC-4, Alex Glaros wrote: > > Sandeep: > > (1) what does the "P" and "B" stand for? > They are web2py HTML helpers for the and tags. > > (2) is there a related way to change font size for individual field names? > The best approach is to add an HTML

[web2py] multiple SUM IF in a single DAL

2018-06-22 Thread Al Ex
Is there a way to translate into a single DAL this sql query? SELECT SUM(IF(is_a = 'T',1,0)) as a, SUM(IF(is_b = 'T',1,0)) as b FROM table; It counts the times is_a and is_b are True. Fields 'is_a' and 'is_b' are declared in DAL as boolean. Thank you -- Resources: - http://web2py.com -

Re: [web2py] Required field label

2018-06-22 Thread Alex Glaros
Sandeep: (1) what does the "P" and "B" stand for? (2) is there a related way to change font size for individual field names? In the above example, I think the style statement needs an equal sign instead of colon: form_add_new_role_member_status =

Re: [web2py] How to know if my code is execute by a scheduler ?

2018-06-22 Thread Yoel Benitez Fonseca
That is not documented on the book got it working on my own way. Thanks El mié., 30 may. 2018 a las 18:25, Bryan Chance () escribió: > > if request.is_scheduler: > db.commit() > > source: https://groups.google.com/forum/#!topic/web2py/ZDoDGH7DNjY > > On Wed, May 30, 2018 at 9:53 AM, Yoel

[web2py] Re: Running web2py with Gunicorn in HTTPS - Arguments for anyserver.py

2018-06-22 Thread 黄祥
base on the book, here is the default argument provide by anyserver.py ref: http://web2py.com/books/default/chapter/29/13/deployment-recipes#anyserver-py think it need sudo (super user access) to run port < 1000, and alternatively you can run gunicorn itself (without anyserver.py), of course

Re: [web2py] Required field label

2018-06-22 Thread sandeep patel
If yor are using SQLFROM than You can try this labels={'field_name':P('name',B('*',_style:'color:red'))} Best On Tue, Jun 19, 2018 at 11:24 PM Tu Duong wrote: > Hi, what is the best way to add red * (or any indication that the field is > required for user) in the label of the required field?

[web2py] Running web2py with Gunicorn in HTTPS - Arguments for anyserver.py

2018-06-22 Thread Jagadish Songapa Gounder
Hi , how to run web2py with Gunicorn in HTTPS, can i add arguments in anyserver.py ? Thanks for your help in advance. Jagadish -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: user request_reset_password doesn't send mail

2018-06-22 Thread Anthony
On Friday, June 22, 2018 at 2:08:44 AM UTC-4, Yebach wrote: > > Hello > > In auth_event the password reset is not logged while all other user > activities (user logged in, user changed password) are. Where (in which > controller) would I insert onvalidation and onaccept callbacks? > Each Auth

Re: [web2py] Re: user request_reset_password doesn't send mail

2018-06-22 Thread Vid Ogris
Hello In auth_event the password reset is not logged while all other user activities (user logged in, user changed password) are. Where (in which controller) would I insert onvalidation and onaccept callbacks? 2018-06-20 14:12 GMT+02:00 Anthony : > Describe the exact workflow and exactly what