Thanks.
On Mar 30, 11:52 pm, Jonathan Lundell <[email protected]> wrote: > On Mar 30, 2011, at 9:15 PM, VP wrote: > > > > > Thanks. > > > Is there a way to turn this off globally for all apps? Or do I have > > to turn it off for each app by specifying hyphen_map=False for each > > app dictionary? > > Just put hyphen_map=False in the BASE dictionary, and it'll set the default > for all your apps. > > > > > > > > > > > Thanks. > > > On Mar 30, 9:35 pm, Jonathan Lundell <[email protected]> wrote: > >> On Mar 30, 2011, at 7:25 PM, VP wrote: > > >>> I actually found the opposite of this. Namely, it maps underscores to > >>> hyphens, as I described above. Note that, my app's name has > >>> underscores; but my controllers have none. > > >> At any rate, you can turn the mapping off. > > >> The mapping is between hyphens in the URL to underscores internally. > > >>> On Mar 30, 6:08 pm, Jonathan Lundell <[email protected]> wrote: > >>>> On Mar 30, 2011, at 3:59 PM, VP wrote: > > >>>>> I think this is whatt he new routing mechanism does. Is this right? > >>>>> Is there a technical reason why? > > >>>>> My app's name has a hyphen in it. And the links are all broken. > > >>>> By default, the new router maps hyphens in URLs (for the > >>>> app/controller/function) to underscores, to make them valid Python > >>>> identifiers. > > >>>> Put map_hyphen = False in the routing dictionary to disable the > >>>> translation.

