devonjones/PSRD-Parser — pull request #2 by jmkacz (2012-09-25 21:38:44+00:00)
Title: bug fixes

Added two FIXMEs.

Updated calls to fetch_section, to add the missing curs argument.

_build_section_type: The sections table has a type column, not a section_type column.

fetch_section: Added missing "return curs.fetchone()" to end of the function.

find_section, fetch_section_subtree, fetch_section_leaves, fetch_section_path, fetch_section_full_tree_depth, fetch_section_tree_depth_indented, fetch_section_tree_depth: Added missing "return curs.fetchall()" to end of the function.

fetch_section_leaves: One element tuples need to be terminated with a comma.

fetch_section_full_tree_depth, fetch_section_tree_depth: Added a missing comma in the select list.

fetch_section_tree_depth_indented: Named the substring.