6.14.4.4. Code File Status

Start python section to interscript/weavers/text.py[5 /11 ] Next Prev First Last
   103: #line 117 "text_weaver.ipk"
   104:   def print_file_status(self,hlevel=2, *args, **kwds):
   105:     passno = self.pass_frame.passno
   106:     h = 'File Status for pass '+str(passno-1)
   107:     if hlevel>0:
   108:       self.head(hlevel,h)
   109:     if self.master.fdict:
   110:       skeys = self.master.fdict.keys()
   111:       skeys.sort()
   112: 
   113:       h = 'Unchanged Files'
   114:       if hlevel>0:
   115:         self.head(hlevel+1,h)
   116:       else:
   117:         self._writeline(h)
   118:       for key in skeys:
   119:         status,change_passno = self.master.fdict[key]
   120:         if status == 'unchanged' and change_passno==0:
   121:           self._writeline(key)
   122: 
   123:       h = 'Changed Files'
   124:       if hlevel>0:
   125:         self.head(hlevel+1,h)
   126:       else:
   127:         self._writeline(h)
   128:       for key in skeys:
   129:         status,change_passno = self.master.fdict[key]
   130:         if status == 'unchanged' and change_passno == 1:
   131:           self._writeline(key)
   132: 
   133:       h = 'Files which required 2 or more passes to converge'
   134:       if hlevel>0:
   135:         self.head(hlevel+1,h)
   136:       else:
   137:         self._writeline(h)
   138:       for key in skeys:
   139:         status,change_passno = self.master.fdict[key]
   140:         if status == 'unchanged' and change_passno > 1:
   141:           self._writeline(key+' (converged in '+str(change_passno)+' passes)')
   142: 
   143:       h = 'Unstable Files'
   144:       if hlevel>0:
   145:         self.head(hlevel+1,h)
   146:       else:
   147:         self._writeline(h)
   148:       for key in skeys:
   149:         status,change_passno = self.master.fdict[key]
   150:         if status == 'changed':
   151:           self._writeline(key)
   152: 
   153:     else:
   154:       self._writeline('No data available in pass '+str(passno)+'.')
   155:     self.par()
   156: 
End python section to interscript/weavers/text.py[5]