On Monday, March 1, 2010, Ben Bangert <b...@groovie.org> wrote: > On Mar 1, 2010, at 9:42 AM, Eric Lemoine wrote: > >> I have a problem since Routes 1.12 was uploaded to pypi: >> >> I do url_for(action="myaction") in one of my controllers. With Routes >> 1.11 it returns the URL to the controller's "myaction" action. With >> Routes 1.12 I get an exception saying that the URL cannot be derived. >> url_for(controller="mycontroller", action="action") works with 1.12, >> but I've been trying to avoid duplicating names. >> >> If this is a problem with my code how should I change it? > > The defaults in Routes have changed with regards to explicit behavior. You > can restore the old handling by setting: > map.explicit = False > > in your config/routing.py file after the mapper object is created. > Minimization also now defaults to false, so you'll also need: > map.minimization = True > > If you want that behavior. Since 0.9.7, recommended use has been with > minimization to False, and one should use url rather than url_for, the latter > of which is being deprecated and will be removed in Routes 2.0.
Thanks! -- Eric Lemoine Camptocamp France SAS Savoie Technolac, BP 352 73377 Le Bourget du Lac, Cedex Tel : 00 33 4 79 44 44 96 Mail : eric.lemo...@camptocamp.com http://www.camptocamp.com -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.