[web2py] posibility to disable the mobile admin interface

2016-11-22 Thread Oli
is there a posibility to disable the mobile interface? there is only a white screen on pythonanywhere.com with web2py version 2.14.6 . -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/iss

Re: [web2py] Re: Custom html email on auth.settings.registration_requires_verification = True

2016-11-22 Thread António Ramos
All is well now but i noticed that in my languages file for exampe pt.py i have one key with all the html from my email_verification.html is this ok? 2016-11-21 17:08 GMT+00:00 António Ramos : > oops... :) > > rewinding my head again to the top of the thread. > > Thank you Leonel... > > 2016-1

[web2py] Re: Pls Help. I can not change the background color of the flash message

2016-11-22 Thread quesada . ostos
thx!! El lunes, 28 de marzo de 2011, 6:12:52 (UTC+2), pbreit escribió: > > Isn't it this CSS in static/css/base.css? Also, If you have any interest > in CSS, Chrome/Safari have an "Inspect Element" command and Firefox has the > terrific Firebug add on. These are all must-have tools for working w

Re: [web2py] scheduling multiple tasks

2016-11-22 Thread Vid Ogris
There is no errors, the file is read etc. The task's status is always TIMEOUT, although the first time I call it is executed correctly. Then I delete the values of the fields the task manipulates with and the second time around values are not inserted and also there is no error or anything in the

[web2py] password validator

2016-11-22 Thread Marvix
Hello, start using web2py for a production application. Very satisfied with it!! Just a question, I added this: custom_auth_table.password.requires = [IS_STRONG(min=8, special=2, upper=3), CRYPT()] but it seems that the validator is applied not only in the change password form but also in

Re: [web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-22 Thread Mark Graves
If I'm reading that correctly, doesn't that show web2py standard and optimized top 3? Wouldn't that suggest a massive performance difference cloud vs baremetal? That would be super strange, but I could be mistaken. Would love to get a look at the errors etc On Mon, Nov 21, 2016 at 3:36 PM, An

Re: [web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-22 Thread Anthony
On Tuesday, November 22, 2016 at 8:16:16 AM UTC-5, Mark Graves wrote: > > If I'm reading that correctly, doesn't that show web2py standard and > optimized top 3? > > Wouldn't that suggest a massive performance difference cloud vs baremetal? > On all the tasks, all the frameworks do better on bar

[web2py] Re: password validator

2016-11-22 Thread Anthony
def user(): if request.args(0) == 'login': custom_auth_table.password.requires.pop(0) return dict(form=auth()) The default password validator is CRYPT(key=settings.hmac_key, min_length=settings.password_min_length), and the auth.login() method automatically resets the min_length

Re: [web2py] Re: 50x performance improvement for web2py in TechEmpower Web Framework Benchmarks

2016-11-22 Thread Mark Graves
That is truly strange. Seems to be a distinct confound. Greatly appreciated work. On Tue, Nov 22, 2016 at 7:27 AM, Anthony wrote: > On Tuesday, November 22, 2016 at 8:16:16 AM UTC-5, Mark Graves wrote: >> >> If I'm reading that correctly, doesn't that show web2py standard and >> optimized t

[web2py] 502 Bad Gateway - no tmp/web2py.socket file

2016-11-22 Thread Richard Brown
I've just tried to do a new install of Web2py on a Raspberry Pi 3 having been using it under Apache on a Model B for a few years now. I used the script "setup-web2py-nginx-uwsgi-ubuntu.sh" which seems to have done most things correctly, but when I try to access the site I get a '502 Bad Gateway

[web2py] Re: what is in the cache ?

2016-11-22 Thread Niphlod
in redis terms (which will set an expire timing accordingly) doesn't make much sense. In the default implementation, which never expires anything, time_expire=0 basically means "update that key". On Monday, November 21, 2016 at 4:30:07 PM UTC+1, Pierre wrote: > > I understand use-cases for >

[web2py] Re: why DAL decode_credentials=True can't work for task scheduler worker?

2016-11-22 Thread Niphlod
scheduler just accepts a DAL connection as a parameter. There's no way that db connection can work for the web process and not the scheduler one. On Monday, November 21, 2016 at 4:42:55 PM UTC+1, DengFeng Mao wrote: > > I am using web2py Version 2.14.3-stable+timestamp.2016.03.26.23.02.02 with

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-22 Thread Niphlod
that should be generated by the uwsgi daemon On Tuesday, November 22, 2016 at 6:34:40 PM UTC+1, Richard Brown wrote: > > I've just tried to do a new install of Web2py on a Raspberry Pi 3 having > been using it under Apache on a Model B for a few years now. I used the > script "setup-web2py-nginx

[web2py] custom widget - why is value empty even though it was set with form.vars.fieldname = something?

2016-11-22 Thread Toby
I'm having an issue where "value" is empty inside my custom widget. I have a field in my database that uses a custom dropdown widget: Field('color_scheme', 'string', requires=IS_IN_SET(color_schemes.COLOR_SCHEME_NAMES), widget=color_choice_widget), I create a form using form=SQLFORM(.

[web2py] Re: custom widget - why is value empty even though it was set with form.vars.fieldname = something?

2016-11-22 Thread Leonel Câmara
That should work, it's probably a bug with the javascript code you're using to set the hidden input which isn't doing its job. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Re: 502 Bad Gateway - no tmp/web2py.socket file

2016-11-22 Thread Richard Brown
Thanks for the reply. The key word here is obviously 'should' - but is it something that should have happened or something I should have done, and how do I resolve it? I used the 'one step deployment' script as thought it would do everything I need to get Web2py working. Richard On Tuesday, No

[web2py] How to create RSS feed from internal table?

2016-11-22 Thread Alex Glaros
I have a web2py table, db.meeting, whose records are to be consumed by outside parties as an RSS feed. In other words, people will subscribe to the RSS feed to obtain a list of meeting dates, times, locations and subjects. Does anyone have an example of the syntax? The examples in the book see

[web2py] Re: web2py as Grafana endpoint

2016-11-22 Thread Dave S
On Thursday, November 17, 2016 at 11:09:27 PM UTC-8, Dave S wrote: > > > > On Thursday, November 17, 2016 at 2:38:57 PM UTC-8, Niphlod wrote: >> >> if the request comes in either as a POST or as a PUT it has a body (since >> all examples report a faily nested query structure, I'd say it's the ca

[web2py] Re: Versioning Erro

2016-11-22 Thread Dave S
On Monday, November 21, 2016 at 8:45:17 AM UTC-8, Leonel Câmara wrote: > > It is a bug, see: > https://github.com/web2py/web2py/issues/1245 > > web2py needs to either remove the mercurial integration or keep up with > their api modifications. > Or use the correct API (command server). I've b