idlesign/django-sitetree — pull request #56 by gwrtheyrn (2012-05-10 07:01:54+00:00)
Title: Added support for max_depth argument

First attempt to add support for a `max_depth` argument in `sitetree_menu`.

Fixes #54.

I did the argument parsing by converting the tokens to a dictionary, so that the order dosn't matter anymore.

The tests run all fine. I did a short manual test and it seemed to work, but didn't have time yet to test it more thoroughly. Looks like the template tags aren't in included the test suite anyways.

Unfortunately there's a lot of argument passing. But I guess that could be refactored if necessary.