This evening I headed over to the Seattle Django Get-together. I haven't gone in a few months, and the topic of tonight's talk intrigued me: "Tree UI with django-treebeard." I've had to do recursion and tree structures a lot, mostly at Isilon but also with the Sekrit Project, but I've done it mostly on the code side using tag includes. I wanted to see what this guy's solution was, since I've thought about doing it using templates but never actually implemented it.
He discussed the problem, and then said, "I put in all kinds of keywords into google looking for it, and I found this one great article called 'Template recursion in Django with Treebeard.'" And he put up a very familiar slide. He said, "It's by this guy named Elf Sternberg."
"That would be me," I said.
"Really?" He was very good about it, not awkward at all. He showed the demo, including some awesome jQuery-based solutions for managing parent/child selection issues before committing them to the server.
I also showed him the paleo code and we discussed ways of abstracting and refining the problem.
I got the impression from the post-presentation conversation that jQuery is de-facto standard for Django, to the point that Django hackers are expected to know it.
That was kinda cool, actually. Now I want to go and refine the article (show how to do it as a template tag, rather than a view) and finish the DWIM HTML in Python series.
He discussed the problem, and then said, "I put in all kinds of keywords into google looking for it, and I found this one great article called 'Template recursion in Django with Treebeard.'" And he put up a very familiar slide. He said, "It's by this guy named Elf Sternberg."
"That would be me," I said.
"Really?" He was very good about it, not awkward at all. He showed the demo, including some awesome jQuery-based solutions for managing parent/child selection issues before committing them to the server.
I also showed him the paleo code and we discussed ways of abstracting and refining the problem.
I got the impression from the post-presentation conversation that jQuery is de-facto standard for Django, to the point that Django hackers are expected to know it.
That was kinda cool, actually. Now I want to go and refine the article (show how to do it as a template tag, rather than a view) and finish the DWIM HTML in Python series.