Re: [web2py] Re: Custom URLs for user profiles

2011-11-07 Thread Sathvik Ponangi
I finally got it to work! Its nice that request.args holds all additional parameters. Thank you for your time, Massimo! -- Sathvik Ponangi

[web2py] Re: Custom URLs for user profiles

2011-11-07 Thread Sathvik Ponangi
I mean http://my_site/user_name/page_name & http://my_site/user_name/page_name/link1/...

[web2py] Re: Custom URLs for user profiles

2011-11-07 Thread Sathvik Ponangi
Thank you Massimo. I'm using a DAL table for users db.define_table('users', > db.Field('name', 'string'), > db.Field('password', 'password') > ) How should I go about it? Also I'd like the same for non user-pages like http://my_site.com/my_page

[web2py] Re: Custom URLs for user profiles

2011-11-07 Thread Massimo Di Pierro
Given auth.define_tables(username=True) def proflle(): return dict(form=SQLFORM(db.auth_user,db_auth_user(username=request.args(0)),readonly=True)) then in routes.py routes_in = [('/$username','/yourapp/default/profile/$username')] routes_in = [('/yourapp/default/profile/$username','/$user