looks like a good start.

Use routes to make URLs more pretty.

Didn't see a Google Maps marker for my location after registration.

logout -> Logout



On Oct 7, 5:58 am, Relsi Hur <[email protected]> wrote:
> Great suggestions, I'll make changes.
>
> I initially thought of using only the location of the city and
> country, but I need the geographic location of a street or a building
> to another project and no need the coutry or city, so I used this
> application as a laboratory. ;)
>
> But I can change in this, In djangopeople they use the geonames API
> for populate a select list (no database), in we2pyople I make a model
> and insert all countries, but I would like to use geonames API to
> generate the select fields values. I call the forms of auth just:
> {{=form}}, then the next step for me is to learn how customize the
> form fields to be generated values dynamically of a JSON or XML
> document.
>
> On 6 out, 15:16, mdipierro <[email protected]> wrote:
>
> > 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.
>
>

Reply via email to