465: #line 517 "html_weaver.ipk" 466: def print_contents(self, hlevel=2, maxlev=3, *args, **kwds): 467: if hlevel>0: 468: self.head(hlevel,'Contents') 469: toc = self.persistent_frame.get('contents',[]) 470: self._write('<PRE>') 471: for level, line in toc: 472: if level <=maxlev: 473: self._writeline(' '*(level*3)+line) 474: self._writeline('</PRE>') 475: