Hi,

Django says that this is a TemplateSyntaxError.

if param1_trunc[i][1]

The i refers to an index of a for loop as shown:

{% for i in pdb1_nums_len_dev6 %}
        <td>
          {% ifequal param1_trunc[i] '-' %}
          {% else %}
            {% if param1_trunc[i][1] %}
            {% else %}
            <center><table><tr><td width=15 height=10 bgcolor=red></table>
            {% endifequal %}
          {% endifequal %}
        {% endfor %}

param1_trunc is a list of lists. Can I not access a object within an
internal list in a template llke regular python (see below)?

>>p =[[1,2,3],[3,4,5]]
>>print p[0][1]
2




-- 
Bradley J. Hintze
Graduate Student
Duke University
School of Medicine
801-712-8799

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to