/[gzz]/gzz/metacode/pegboard.py
ViewVC logotype

Diff of /gzz/metacode/pegboard.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by humppake, Tue Nov 12 16:53:03 2002 UTC revision 1.17 by humppake, Wed Nov 13 11:21:53 2002 UTC
# Line 137  pegtable = [] Line 137  pegtable = []
137  #converts all rsts' in pegdirs and parses pegs' meta information  #converts all rsts' in pegdirs and parses pegs' meta information
138  #from pegs' main files  #from pegs' main files
139  for pegdir in pegdirs:  for pegdir in pegdirs:
140      print 'Process PEG %s' % (pegdir)      print 'Processing PEG %s' % (pegdir)
141    
142      peg = {'authors': '', 'status': undefined, 'topic': pegdir, 'stakeholders': '',      peg = {'authors': '', 'status': undefined, 'topic': pegdir, 'stakeholders': '',
143             'date': '', 'dir': pegdir, 'files': '', 'html': '', 'rst': '',             'date': '', 'dir': pegdir, 'files': '', 'html': '', 'rst': '',
# Line 175  for pegdir in pegdirs: Line 175  for pegdir in pegdirs:
175              pub.apply_transforms(document)              pub.apply_transforms(document)
176              output = pub.writer.write(document, pub.destination)              output = pub.writer.write(document, pub.destination)
177              peg['cvsignore'].append(rstfile[0:len(rstfile)-4]+'.html')              peg['cvsignore'].append(rstfile[0:len(rstfile)-4]+'.html')
             peg['html'] = rstfile[0:len(rstfile)-4]+'.html'  
178    
179              #conversion have succeeded so far, parsing peg's metadata              #conversion have succeeded so far, parsing peg's metadata
180              #from its document tree              #from its document tree
181              if rstfile == peg['rst']:              if rstfile == peg['rst']:
182                    peg['html'] = rstfile[0:len(rstfile)-4]+'.html'
183                  peg['topic'] = getTagValue(document, 'title', always_raw=1)                  peg['topic'] = getTagValue(document, 'title', always_raw=1)
184                  peg['topic'] = peg['topic']                  peg['topic'] = peg['topic']
185                  #mark literates in topic                  #mark literates in topic

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26