title: get the index of a tal:repeat in another tal:repeat function
body: <p>As you can see I have 3 lists: <code>Procedur_Headers</code>, <code>Diagnoses</code> and <code>List_Procedur</code>. 
  <code>Procedur_headers</code> gives the headers of my tabels,
  <code>Diagnoses</code> gives the specific id of a procedure and
  <code>List_Procedur</code> is a list of lists (query’s) where all the data that I need is contained.
  Now what I want to do is to have the index of the Diagnoses page in the </p>
  
  <pre><code>tal:repeat="list_procedur List_Procedur[index]"
  </code></pre>
  
  <p>that I can get my data in my table.
  I already can get the index:</p>
  
  <pre><code>tal:content="python:repeat['diagnoses'].index"
  </code></pre>
  
  <p>but I can't do this at the place of index.
  Does anybody have a solution for something like this?</p>
  
  <pre><code>&lt;table id="tableIngrepen" class="table"&gt;
      &lt;thead class="header"&gt;
      &lt;tr&gt;
          &lt;th&gt;Code Diagnose vast&lt;/th&gt;
          &lt;th tal:repeat="procedur_headers Procedur_Headers" tal:content="procedur_headers" &gt; &lt;/th&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tr tal:repeat="diagnoses Diagnoses"&gt; 
          &lt;td tal:content="python:repeat['diagnoses'].index"&gt;&lt;/td&gt;
          &lt;td &gt;&lt;input type='text' id="dz_code" class="input-mini" value="${diagnoses.code_diagnose}" onchange="voegrijtoe_Ingrepen(this.value,this);logging(this,'Code','2')" placeholder="Code"&gt;&lt;/input&gt;&lt;/td&gt; &lt;!-- onfocus="rijencolom($(this).parent().children().index($(this)),$(this).parent().parent().children().index($(this).parent()))" --&gt;
          &lt;td colspan="6"&gt;
              &lt;table  id="tableIngrepen" class="table table-hover" style="border-style:none"&gt;
                  &lt;thead class="header"&gt;
                      &lt;tr&gt;
                          &lt;th tal:repeat="procedur_headers Procedur_Headers" tal:content="procedur_headers" &gt; &lt;/th&gt; &lt;!-- style="display:none"--&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tr tal:repeat="list_procedur List_Procedur[index]"&gt;
                      &lt;td style="max-width: 60px; word-wrap: break-word" &gt;Uitleg over de Code van deze diagnose in maximaal 200 karakters&lt;/td&gt;
                      &lt;td &gt;&lt;input type='text' id="dz_Datum" class="input-small2" value="${list_procedur.code_diagnose}"  onchange="logging(this,'Datum','2');datumvalidate(this)" placeholder="yyyy-mm-dd"&gt;&lt;/input&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type='text' id="dz_dir" class="input-mini1"  onchange="logging(this,'Dir','2')" &gt;&lt;/input&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type='text' id="dz_aan" class="input-mini1"  onchange="logging(this,'Aan','2')" &gt;&lt;/input&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type='text' id="dz_uit" class="input-mini1"  onchange="logging(this,'Dz','2')" &gt;&lt;/input&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td style="max-width: 60px; word-wrap: break-word" &gt;Uitleg over de Code van deze diagnose in maximaal 200 karakters&lt;/td&gt;
                      &lt;td &gt;&lt;input type='text' id="dz_Datum" class="input-small2"  onchange="logging(this,'Datum','2');datumvalidate(this)" placeholder="yyyy-mm-dd"&gt;&lt;/input&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type='text' id="dz_dir" class="input-mini1"  onchange="logging(this,'Dir','2')" &gt;&lt;/input&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type='text' id="dz_aan" class="input-mini1"  onchange="logging(this,'Aan','2')" &gt;&lt;/input&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;input type='text' id="dz_uit" class="input-mini1"  onchange="logging(this,'Dz','2')" &gt;&lt;/input&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>