[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-08-01 Thread Rob_McC
Massimo . Once again, *many* thanks. *It worked 100%* ~ Rob . I have summarized what you taught me here: What file does: ** * http://somesocialwebsite/~jsmith * will redirect to: *http://somesocialwebsite/default/user/profile* FileName: *routes.py* *File Loc

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-08-01 Thread Massimo Di Pierro
If you want to sue this URL: http://127.0.0.1:8000/ProfilePublic/~jsmith routes should be like this: # begin routes_in = [ ('/ProfilePublic/~$anything','/ProfilePublic/default/userinfo/$anything' ), ] #end routes_out = [ ('/ProfilePublic/default/userinfo/$anything','/ProfilePublic/~$anythin

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-07-31 Thread Massimo Di Pierro
Assuming you have auth.settings.extra_fields=[Field('age','integer'),Field('country')] auth.define_tables(username=True) you define def userinfo() user = db.auth_user(username=request.args(0)) or redirect(URL('error')) return dict(user=user) with a view {{extend 'layout.html'}} So

[web2py] Re: Making part of User's Profile public - viewable by anyone with url

2012-07-31 Thread Cliff Kachinske
Check out fields and readonly in the SQLFORM signature at http://web2py.com/books/default/chapter/29/7 Also see crud.read() and crud.select() at http://web2py.com/books/default/chapter/29/7#Methods Either of these should do the job for you. On Tuesday, July 31, 2012 3:11:47 PM UTC-4, Rob_McC w