Adi, thanks very much, works well.
I will probably want to remove "profile" from url so user can just
have www.myapp.com\username but I will
need to think how this can be done:)
On Jun 4, 5:16 pm, Adi wrote:
> Assuming your application is in init folder - the following might work
>
> routes_in=(
Assuming your application is in init folder - the following might work
routes_in=(
('/profile/$args', '/init/default/profile/$args'),
('/profile/$args/(?P.*$)', '/init/default/profile/$args/
\g'),
)
routes_out=(
('/init/default/profile/$args', '/profile/$args'),
('/init/default/profile/$a
anyone?
On Jun 3, 2:29 pm, ChrisM wrote:
> Having trouble gettingroutesto work (not used before) for instance
> as a test I did:
>
> inroutes.py:
> routes_in = ( ('/profile/*', '/init/default/userprofilepage/*'),)
> routes_out = ( ('/init/default/userprofilepage/*', '/profile'),)
>
> in default
Having trouble getting routes to work (not used before) for instance
as a test I did:
in routes.py:
routes_in = ( ('/profile/*', '/init/default/userprofilepage/*'),)
routes_out = ( ('/init/default/userprofilepage/*', '/profile'),)
in default controller:
def userprofilepage():
userprofile re
thanks
On Jun 3, 6:08 am, Adi wrote:
> You could use an argument.
>
> www.myapp.com/userprofilecan be mapped to a controller/method
> likewww.myapp.com/app/profiles/show/userprofile
>
> where app = application, profiles = controller, show = function,
> userprofile is an argument accessed by requ
You could use an argument.
www.myapp.com/userprofile can be mapped to a controller/method like
www.myapp.com/app/profiles/show/userprofile
where app = application, profiles = controller, show = function,
userprofile is an argument accessed by request.args(0) inside "show".
You can use it to query
For isntance I have RPX login which creates user profile for each
logged in user.
I would like to give each one of these users there own homepage (i.e.
like twitter) which could be
dynamically created.
So I thought the first task was to see how thiscould be mapped,
perhaps by querying db.profile an
Can you explain more?
On Jun 2, 8:00 am, ChrisM wrote:
> I searched through the list but couldn't find any discussion on this
> topic.
>
> Any ideas how the following can be achieved with routes.py
>
> www.appname.com\userprofilename
>
> I am guessing that there would need to be a db.auth lookup
8 matches
Mail list logo