glebpopov/Hacker-News-Droid-API — pull request #2 by suan (2011-10-23 18:42:24+00:00)
Title: Nested comments

Here's the nested comments feature, please check whether this works for you. Also let me know if you'd like me to squash the commits into one

- As you requested, I've created a separate handler at the nestedcomments/... URL based off of comments/... I've also duplicated a lot of methods down the call stack - there's a lot of duplicate code :P Its just easier for now, and didn't wanna affect the other API methods

- building JSON/XML strings especially with the nested comments was too tedious, so I've used simplejson and a list/dict -> XML converter from here: https://github.com/suan/huTools/blob/master/huTools/structured.py#L314 (this should be a better long term solution)

- The project's code in general needs some refactoring - will make future development easier :)