This is nice and useful. Some suggestions:
1) to the auth_user table add:
Field('city'),Field('country'),Field('bio'),Field('completed_registration','boolean',default=False)
2) make compleed_registration, latitude and longitude writable=False
3) use rpx for login
4) add this
if auth.user and not auth.user.completed_registration:
redirect(URL('default','user/profile')
def compute_lola(form):
from gluon.tools import geocode
form.vars.completed_registration=True
form.vars.longitude, form.vars.latitude = geocode("%s %s" %
(form.vars.city, form.vars.country))
auth.settings.register_onvalidation=compute_lola
auth.settings.profile_onvalidation=compute_lola
This will automate the computation of latitude and longitude + you
will not have to send emails to verify credentials.
Massimo
On Oct 6, 1:07 pm, Relsi Hur <[email protected]> wrote:
> Hi, a make a very very simple clone ofhttp://www.djangopeople.net,
> just to practice the development of applications with web2py.
>
> For now, has only the registration and location on the map, later I
> will implement the listings of users by country, and others things.
>
> see:http://web2pyople.appspot.com
>
> any suggestion, complaint or criticism is welcome =)
>
> Once again want to thank Massimo for all help.