]> git.llucax.com Git - software/sercom.git/commitdiff
solo muestro archivos con extension diff.
authorRicardo Markiewicz <rmarkie@fi.uba.ar>
Sun, 18 Mar 2007 21:09:58 +0000 (21:09 +0000)
committerRicardo Markiewicz <rmarkie@fi.uba.ar>
Sun, 18 Mar 2007 21:09:58 +0000 (21:09 +0000)
sercom/subcontrollers/misentregas/templates/diff.kid

index e007b10ee5a15008374132d2c3c045954cddd29a..8a72d372b411f03d60373747ab95217ca71a807d 100644 (file)
 <h1>Diferencias</h1>
 
 
 <h1>Diferencias</h1>
 
 
-<?python i = 0 ?>
 <div py:for="info in zip.infolist()">
 <div py:for="info in zip.infolist()">
+       <?python
+       n, ext = os.path.splitext(info.filename)
+       if ext != ".diff":
+               continue
+       ?>
        <h3>${info.filename}</h3>
        <h3>${info.filename}</h3>
-               <?python n, ext = os.path.splitext(info.filename) ?>
-               <textarea name="code" class="${ext[1:]}:collapse">${zip.read(info.filename)}</textarea>
-       <?python i += 1 ?>
+       <textarea name="code" class="${ext[1:]}:collapse">${zip.read(info.filename)}</textarea>
 </div>
 
 <br/>
 </div>
 
 <br/>