On Thu, Aug 30, 2012 at 6:09 PM, Yuriy <[email protected]> wrote:
> how I can mapped http://localhost:8080 and  http://localhost:8080/ to the
> .index()  but http://localhost:8080/index and
> http://localhost:8080/index.html to the ._lookup() ?

Short answer: You can't. When TG receives a request for / or /index or
/index.html it looks for .index on the controller. That's just the way
it works. The closest you can get is by using _lookup to provide a
custom choice for how to handle it all, but it must handle all of the
cases you describe.

Short of rewriting core pieces of TurboGears, there's no other way.

-- 
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: [email protected] -- Twitter: pedersentg

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to