Excellent! This is exactly the info I was looking for, thank you
Christoph! So I refactor my controller to look like this:
@expose()
def fs(self, *args, **kw):
if tg.request.response_ext:
args = list(args)
args[-1] += tg.request.response_ext
print args, kw
So now I able to get full info about the the requested URL as I need
too.
Thank you Christoph and Michael! This is totally solved my problem.
Take care,
Erni.
On Sep 24, 4:52 am, Christoph Zwerschke <[email protected]> wrote:
> Am 24.09.2011 07:05, schrieb Michael Pedersen:
>
> > It took me a minute to spot the difference, and I even was starting down
> > the wrong path.
>
> Looked hard, but did not see any difference. Actually I think the
> difference is on Erni's system which may have a mime type for the p
> extension. In this case, TG strips the extension and puts it in
> request.response_ext, and sets request.response_type.
>
> -- Christoph
--
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.