Re: Django, Blueprintcss and a data array

2009-09-05 Thread Antoni Aloy

2009/9/5 adelaide_mike :
>
> I (newbie) am looking at using Blueprintcss to display a 7 column
> array of data. The data is passed to the template in "dataarray".  I
> have tested the code below without the  section and the column
> headings display correctly.
>
> Adding the  section to the code causes an error at {% for row
> in dataarray %}:
>   Caught an exception while rendering: 'int' object is not iterable
>
> Very similar code in a template that uses a simple table (without
> Blueprint) does not throw an error.
>
> {% extends "base.html" %}
> {% block content %}
>
> 
> 
>            Agent summary report
>        The most recent listing for each property listed within the
> past 12 weeks
>       
>               Address
>               Date
>               Price
>               Method
>               Agent
>                 
>               Mobile
>       
>
>       
>           {% for row in dataarray %}
>
>                
>                    {% for item in row %}
>                        {{ item }}
>                    {% endfor %}
>                 
>
>           {% endfor %}
>        
> 
>
> 
>
> {% endblock %}
>
I would add  surronding the table code, but I can't see
any problem. Please post the error. In my oppinion you'll have to
check the dataarray as it seems that one of the rows in now a list.


-- 
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---



Django, Blueprintcss and a data array

2009-09-04 Thread adelaide_mike

I (newbie) am looking at using Blueprintcss to display a 7 column
array of data. The data is passed to the template in "dataarray".  I
have tested the code below without the  section and the column
headings display correctly.

Adding the  section to the code causes an error at {% for row
in dataarray %}:
   Caught an exception while rendering: 'int' object is not iterable

Very similar code in a template that uses a simple table (without
Blueprint) does not throw an error.

{% extends "base.html" %}
{% block content %}



Agent summary report
The most recent listing for each property listed within the
past 12 weeks
   
   Address
   Date
   Price
   Method
   Agent
 
   Mobile
   

   
   {% for row in dataarray %}


{% for item in row %}
{{ item }}
{% endfor %}
 

   {% endfor %}





{% endblock %}

Any hints, or pointers to the display of multi-row columned data would
be appreciated.

Mike Rowan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~--~~~~--~~--~--~---