I've a template based as shown in the following markup. sometimes
stocks is passed empty before template.render(); hence it should show
up a friendly msg, but it doesn't...Can't understand why?


<div>
                        {% if stocks %}
                                <table cellspacing="0" cellpadding="0" 
style="border-
collapse:collapse" border="1px">
                                        <tr>
                                                <th>Scripcd</th>
                                                <th>ScripID</th>
                                                <th>Company Name</th>
                                                <th>Shares purchased</th>
                                                <th>Purchase Price</th>
                                                <th>Total Price</th>
                                        </tr>
                                        {% for stock in stocks %}
                                                <tr>
                                                        <td>{{ stock.scripcd 
}}</td>
                                                        <td>{{ stock.scripid 
}}</td>
                                                        <td>{{ 
stock.company_name }}</td>
                                                        <td>{{ stock.qty }}</td>
                                                        <td>{{ stock.mktprice 
}}</td>
                                                        <td>{{ stock.total 
}}</td>
                                                <tr>
                                        {% endfor %}
                                </table>
                        {% else %}
                                Please <a href="/add">add</a> stocks to see 
something here...
                        {% endif %}
                </div>

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=.


Reply via email to