[web2py] Month picker

2014-04-06 Thread Pearu Peterson
Hi, In a form I'd like to have a field that contains month and year information, only. The current date picker (via using IS_DATE validator, for instance) includes also days which for the given application UI would be a noise. Is there any way to configure date pickler to show only months (as

[web2py] jsonify equivalent in web2py

2013-11-26 Thread Pearu Peterson
Hi, I am trying to merge sphinx generated documents to a web2py application using sphinx.websupport [1]. I am stuck to get commenting working. Namely, according to [1], a _get_comment controller ought to return jsonify object when using flask. My question is what would be jsonify(..) equivalent

[web2py] Re: jsonify equivalent in web2py

2013-11-26 Thread Pearu Peterson
:26:04 PM UTC+1, Pearu Peterson wrote: Hi, I am trying to merge sphinx generated documents to a web2py application using sphinx.websupport [1]. I am stuck to get commenting working. Namely, according to [1], a _get_comment controller ought to return jsonify object when using flask. My

[web2py] Re: import numpy and scipy slows function return

2013-01-03 Thread Pearu Peterson
Hi, I am just another user experiencing exactly the same problem: importing scipy is so slow that so far I have gotten only 504-Gateway Timeout errors at the scipy import statements. In my case scipy is imported from a python module under application modules directory. Both `import

[web2py] Re: import numpy and scipy slows function return --- possible solution

2013-01-03 Thread Pearu Peterson
On Friday, January 4, 2013 1:48:39 AM UTC+2, Pearu Peterson wrote: Hi, I am just another user experiencing exactly the same problem: importing scipy is so slow that so far I have gotten only 504-Gateway Timeout errors at the scipy import statements. In my case scipy is imported from a python

[web2py] How to update variables in a browser address field without calling redirect?

2012-12-26 Thread Pearu Peterson
Hi, Say, I have a controller def foo(): if not response.vars: redirect(URL(vars = dict(count = 0))) new_count = int(response.vars.count) + 1 # How to update response.vars.count to new count? return P('Hello') In a browser, when hitting http://.../foo then page is

[web2py] How to check if plain text password matches with encrypted password in auth_user.password?

2012-12-21 Thread Pearu Peterson
Hi, I have a password in plain text and I want to check if it matches with the crypted password in auth_user.password field. I have tried comparing auth_user.password with str(db.auth_user.password.validate(plain_password)[0]) with no success even when I know that the passwords match exactly.

Re: [web2py] How to check if plain text password matches with encrypted password in auth_user.password?

2012-12-21 Thread Pearu Peterson
, at 5:12 PM, Pearu Peterson pearu.p...@gmail.comjavascript: wrote: Hi, I have a password in plain text and I want to check if it matches with the crypted password in auth_user.password field. I have tried comparing auth_user.password with str(db.auth_user.password.validate