#NEWLINE# def get_children( cur , node ) : #NEWLINE# #INDENT# '\n    Return an iterator that yields a ``NodeData`` object of every\n    immediate child.\n\n    :param node:\n    :type node: Node or int\n    ' #NEWLINE# sql = '\n        SELECT\n          *\n        FROM\n          nodes\n        WHERE\n          parent=%s\n        ORDER BY\n          position;\n    ' #NEWLINE# cur . execute ( sql , ( int ( node ) , ) ) #NEWLINE# for result in cur : #NEWLINE# #INDENT# ( yield NodeData ( ** result ) )