On Fri, Apr 3, 2009 at 9:32 PM, Malcolm Tredinnick <malc...@pointy-stick.com > wrote:
> > On Fri, 2009-04-03 at 21:07 -0400, Alex Gaynor wrote: > [...] > > A lazy reverse shouldn't be too difficult to implement in your own > > code though: > > > > from django.utils.functional import lazy > > reverse_lazy = lazy(reverse, str) > > This would have to be "unicode", not "str", since reverse() really > returns IRIs, not merely URIs. > Hrm, thought I saw it return a str, more than likely that's be being dumb though :) > > > > > This is totally untested, > > And django.utils.functional is internal API, so this shouldn't ever be > relied upon to not change. > Indeed, usual warnings about picking up all the broken pieces apply. > > Regards, > Malcolm > > > > > > Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---