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',
>>
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'),
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',
>
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
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
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
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
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.
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
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
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
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
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
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
14 matches
Mail list logo