Hello
I am new to python world . any one can help to guide how we
declare variables in python template script and use in if else block
and vary it
for example
//need to declare variable here
//for example x=0
{% for message in message %}
//need to put if condition here
//ifequal x 0
<tr bgcolor="#DDDDDD">
//x=1
//need to put else condition here
<tr bgcolor="#FFFFFF">
x=0
<td width='20%'> <a
href="/restmessage/mzubair.ahmed?format=xml">mzubair.ahmed </a></td>
<td width='60%'>
test
</td>
<td width='20%'> 2008-12-12 05:13:45.788901</td>
</tr>
{%endfor%}
--
Regards
Haroon Idrees
Sr.Software Engineer
cell:92321-2066747
msn:[email protected]
http://www.linkedin.com/in/haroonob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---