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 <
relsi.ram...@gmail.com> wrote:
> Hi, a make a very very simple clone ofhttp://
www.djangopeople.net,