On 6-7-2012 16:01, Cal Leeming [Simplicity Media Ltd] wrote: > I've actually just done a ticket about this.. > > https://code.djangoproject.com/ticket/18584 > > Personally, I think the approach mentioned in the ticket is a far saner way > of doing things.
Just wondering about this: if res: return {'urlname' : res.url_name} a) no else clause, so there's a codepath where no dict is returned b) if that can't be reached, then why the if statement. Other that that, it probably needs a bit of refinement if you're going to force a naming convention, then force the convention on how to deal with sub menus, so that we can generate stuff like: News | world >> local | business Polls | current | recent etc and have both "news" and "local" highlighted. For example it makes sense for urlnames like this to have a double underscore separator, so the urlname for news/local would be news__local. Then again, it might be overkill. -- Melvyn Sopacua -- 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.