> > One question is, how can the controller method know which content type
> > was requested in case more than one format was @exposed? (I understand
> > that usually it does not need to know, but in some cases it still may be
> > useful.)
> >
>
> I'd like to emphasis this last point.
> Being unable to know in the method which expose format the request
> will end up with was a big shortcomming in tg 1.0

In TG2 that information is registered in an object (tg_info) before
the controller method is called, and read out of that registry after
the controller function is called.   You can both read, and manipulate
that registry from you controller code if you need to for some reason.

--Mark

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to