Ok, this is done. The url and redirect functins no longer take lists of path elements, and no longer take dictionaries of parameters -- so you need to append your path elements manually now, and you need to do *dict to turn your dictionary into keyword arguments if you want those passed as parameters to the url.
I will update the docs tomorrow. There is one other thing happening, which is non-asci strings that come in off of a request are turned into unicode on the way in -- but url now only accepts encoded strings. This causes 4 tests to fail in the new test suite for dispatch. These tests are commented out for now, any suggestions on how to handle this best would be appriciated as I'm about worn out for the night. In the meantime, if you're using non-asci chars in your URL's and want to run the latest tg2 trunk, you'll have to encode them before calling url() or redirect(). --Mark On Tue, Dec 16, 2008 at 3:36 PM, Mark Ramm <[email protected]> wrote: > Ok, I'm making a ticket for this, and will check in these changes tonight. > > I'd like a couple of days of testing on this, after it's completed, > because it does change an existing API somewhat. And I'm booked up on > thursday and friday, so this means that we'll probably have a b1 > release on monday. > > --Mark > > On Tue, Dec 16, 2008 at 1:18 PM, Luke Macken <[email protected]> wrote: >> On Mon, Dec 15, 2008 at 2:11 PM, Mark Ramm <[email protected]> >> wrote: >>> >>> I propose that we switch to using the pylons.url function which is >>> routes aware in tg2. >>> >>> [...] >>> >>> If we're going to make this change, and I think we should, we need to >>> make it now. >>> >>> Any thoughts? >> >> This sounds like a great idea to me. Especially, seeing as how pylons.url >> is apparently 20-25% faster as of Pylons 0.9.7rc3. >> >> luke >> >> >> >> > > > > -- > Mark Ramm-Christensen > email: mark at compoundthinking dot com > blog: www.compoundthinking.com/blog > -- Mark Ramm-Christensen email: mark at compoundthinking dot com blog: www.compoundthinking.com/blog --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
