tests/test_pdfgen_general.py
branchpy33
changeset 3800 e8547b00eb59
parent 3794 398ea04239b5
child 3849 8ff9b1fb92cd
equal deleted inserted replaced
3799:9e42094b0298 3800:e8547b00eb59
    81 #def newsection(name):
    81 #def newsection(name):
    82 #    outlinenametree.append(name)
    82 #    outlinenametree.append(name)
    83 
    83 
    84 
    84 
    85 #def newsubsection(name):
    85 #def newsubsection(name):
    86 #    from types import TupleType
       
    87 #    thissection = outlinenametree[-1]
    86 #    thissection = outlinenametree[-1]
    88 #    if type(thissection) is not TupleType:
    87 #    if not isinstance(thissection,tuple):
    89 #        subsectionlist = []
    88 #        subsectionlist = []
    90 #        thissection = outlinenametree[-1] = (thissection, subsectionlist)
    89 #        thissection = outlinenametree[-1] = (thissection, subsectionlist)
    91 #    else:
    90 #    else:
    92 #        (sectionname, subsectionlist) = thissection
    91 #        (sectionname, subsectionlist) = thissection
    93 #    subsectionlist.append(name)
    92 #    subsectionlist.append(name)