[web2py] Re: IS_EMPTY_OR(IS_IN_DB incompatible with custom form?

2014-08-27 Thread José L .
El martes, 26 de agosto de 2014 22:49:17 UTC+2, Anthony escribió: > > > > On Tuesday, August 26, 2014 3:13:35 PM UTC-4, José L. wrote: >> >> Hi, I'm using a custom form to represent the fields of a table. This >> table has referenced fields. >> If I use: >> db.define_table('department', >>

[web2py] Delegated validation in an SQLFORM

2014-08-27 Thread Louis Amon
I'm trying to build a form based on Google Places (geocoding) based on the following table: db.define_table('place', Field('address'), Field('street_number'), Field('route'), Field('locality'), Field('lat'),

[web2py] Re: Delegated validation in an SQLFORM

2014-08-27 Thread Niphlod
use an onvalidate call that do the checks on lat and lng but adds the error on address. On Wednesday, August 27, 2014 11:50:42 AM UTC+2, Louis Amon wrote: > > I'm trying to build a form based on Google Places (geocoding) based on the > following table: > > db.define_table('place', >

[web2py] Re: Delegated validation in an SQLFORM

2014-08-27 Thread Louis Amon
You mean something like that ? def my_validator(form): if form.vars['lat'] == '' or form.vars['lng'] == '': form.errors['address'] = "address isn't precise enough" But then wouldn't the form be accepted anyway since onvalidation is called when every field passes validation ? On Wedne

[web2py] Re: Delegated validation in an SQLFORM

2014-08-27 Thread Niphlod
there are two steps, the requirements on the fields themselves and the onvalidation call. that's before form.process() comes into the mix. form.process().accepted is true only when there are no form.errors. Since you're adding them in the onvalidation call, the form is processed, but not accepte

[web2py] approve my post for dev group

2014-08-27 Thread Quint
Hi all, Could someone approve my post on the developers group? Thanks! Quint -- 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) --- You received this message

[web2py] Re: approve my post for dev group

2014-08-27 Thread Anthony
Done. And thanks for the contribution. Anthony On Wednesday, August 27, 2014 8:44:00 AM UTC-4, Quint wrote: > > Hi all, > > Could someone approve my post on the developers group? > > Thanks! > > Quint > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

[web2py] Re: concurrency, web2py, and GAE

2014-08-27 Thread Richard Penman
Was this threading problem resolved? On Saturday, August 18, 2012 7:15:37 AM UTC+2, Massimo Di Pierro wrote: > > I am pretty sure web2py does not put those variables in global namespace > but there is some extra logic for GAE that was written with some stronger > assumptions. Will take a look.

[web2py] Re: Can't get web2py working with GAE locally

2014-08-27 Thread Richard Penman
Would be worth mentioning this in the book. On Saturday, January 4, 2014 3:25:17 AM UTC+1, Massimo Di Pierro wrote: > > It is in handlers/gaehandler.py > There reason we moved is that we do now want to pollute the main folder > and we do now want to overwrote any changes you may have to make to

[web2py] Re: Registration passworld field security risk on form failure?

2014-08-27 Thread Mark Li
Under the Net tab in Firebug, the Post contains the submitted variables, and the response tab is the HTML of the returned page. This response contains the password input value in plain text. If I submitted the password as "asdf" and submitted the registration form with failures, the response wi

[web2py] Re: Registration passworld field security risk on form failure?

2014-08-27 Thread Willoughby
It got posted to the developer list yesterday, so it would seem at least some of the maintainers think it's an issue worth discussion. On Wednesday, August 27, 2014 1:11:57 PM UTC-4, Mark Li wrote: > > Under the Net tab in Firebug, the Post contains the submitted variables, > and the response t

[web2py] Re: How can I set correctly auth.settings.registration_requires_verification = False ?

2014-08-27 Thread Luca Guerrieri
Hi people, please do you have any idea on the way i can avoid the register_key verification ? Thank You Il giorno lunedì 4 agosto 2014 10:39:26 UTC+2, Luca Guerrieri ha scritto: > > Goodmornig people, > I've customized registration form and relative view, for integrating the > registration > p

Re: [web2py] Re: Registration passworld field security risk on form failure?

2014-08-27 Thread Mark Li
This problem was patched here today: https://github.com/web2py/web2py/commit/5364193759f266e0c07128de2a7b6b54a82ef736 On Wed, Aug 27, 2014 at 10:40 AM, Willoughby wrote: > It got posted to the developer list yesterday, so it would seem at least > some of the maintainers think it's an issue wort

Re: [web2py] Re: Registration passworld field security risk on form failure?

2014-08-27 Thread Anthony
Thanks for pointing this out. Anthony On Wednesday, August 27, 2014 5:54:15 PM UTC-4, Mark Li wrote: > > This problem was patched here today: > https://github.com/web2py/web2py/commit/5364193759f266e0c07128de2a7b6b54a82ef736 > > > On Wed, Aug 27, 2014 at 10:40 AM, Willoughby > wrote: > >> It g