29 for block
in section.blocks.values():
33 for markup
in block.markups:
34 if markup.tag ==
'values':
35 for field
in markup.fields:
45 "WARNING: duplicate definition for '" + name +
"' in " + \
46 block.location() +
", previous definition in " + \
75 def toc_dump( self, toc_filename = None, index_filename = None ):
82 for chap
in self.processor.chapters:
84 self.toc_chapter_enter( chap )
86 for section
in chap.sections:
87 self.toc_section_enter( section )
88 self.toc_section_exit( section )
90 self.toc_chapter_exit( chap )
92 self.toc_index( index_filename )
121 for name
in self.block_index:
122 self.index_name_enter( name )
123 self.index_name_exit( name )
162 self.section_enter( section )
164 for name
in section.block_names:
165 block = self.identifiers[name]
166 self.block_enter( block )
168 for markup
in block.markups[1:]:
169 self.markup_enter( markup, block )
171 for field
in markup.fields:
172 self.field_enter( field, markup, block )
173 self.field_exit( field, markup, block )
175 self.markup_exit( markup, block )
177 self.block_exit( block )
179 self.section_exit( section )
def open_output(filename)