It is the default expected behavior, if the url ends with .ext it is considered being the webpage extension and used to choose which @expose decorator consider in case of multiple templates exposed. It is useful if you want to expose the controller for example both for html and json, calling page.json will return the json version while calling .html (or no extenion at all) will return the html page.
You can change this by setting disable_request_extensions to false inside app_cfg.py On Wed, Sep 12, 2012 at 5:55 PM, Remi Jolin <[email protected]> wrote: > Hello, > > Coming from TG1 I started playing with TG2.2 a few days ago and I > encountered this : > > Suppose you have a controller with > def fct(self, a, b=None): > # do something > return something > > http://localhost:8080/fct/abcdef > gives a = 'abcdef', b=None. That's OK > > but > http://localhost:8080/fct/abc.def > gives a = 'abc', b=None !! NOT OK > > and > http://localhost:8080/fct/abc.def/123 > a='abc.def', b='123' - OK > > and > http://localhost:8080/fct?a=abc.def > a='abc.def', b=None - OK > > Any explanation ? > Is it the expected behavior ? > > -- > 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. > -- 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.

