<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: django-tables: A QuerySet renderer</title>
	<atom:link href="http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/</link>
	<description>Contributing back to the Google Index.</description>
	<lastBuildDate>Sat, 17 Dec 2011 12:11:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: alj</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-943</link>
		<dc:creator>alj</dc:creator>
		<pubDate>Mon, 01 Mar 2010 10:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-943</guid>
		<description>I kept getting every other cell as an empty cell. After spending ages looking through the code the problem is actually more obvious. It&#039;s in the template example above. There is a slash missing. 

Should be:

{{ value }}  

not

{{ value }}</description>
		<content:encoded><![CDATA[<p>I kept getting every other cell as an empty cell. After spending ages looking through the code the problem is actually more obvious. It&#8217;s in the template example above. There is a slash missing. </p>
<p>Should be:</p>
<p>{{ value }}  </p>
<p>not</p>
<p>{{ value }}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Berg (mberg) 's status on Sunday, 08-Nov-09 10:20:39 UTC - Identi.ca</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-659</link>
		<dc:creator>Matt Berg (mberg) 's status on Sunday, 08-Nov-09 10:20:39 UTC - Identi.ca</dc:creator>
		<pubDate>Sun, 08 Nov 2009 10:20:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-659</guid>
		<description>[...] !mvpdev http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/ [...]</description>
		<content:encoded><![CDATA[<p>[...] !mvpdev <a href="http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/" rel="nofollow">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Steiner</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-643</link>
		<dc:creator>Steve Steiner</dc:creator>
		<pubDate>Wed, 02 Sep 2009 11:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-643</guid>
		<description>Ok, I&#039;ll head up to the Google group, missed the reference above.</description>
		<content:encoded><![CDATA[<p>Ok, I&#8217;ll head up to the Google group, missed the reference above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-642</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 02 Sep 2009 08:50:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-642</guid>
		<description>It&#039;s called in the given location on the row objects you are passing in - they originally where intended to be dicts, although I guess it would be preferrable for django-tables to use indexing. I can&#039;t tell if that would help in your case though, or whether you just have a bug in your code. What is &quot;WSSWSite&quot;?

I&#039;d prefer you use the django-apps Google Group for support requests though.</description>
		<content:encoded><![CDATA[<p>It&#8217;s called in the given location on the row objects you are passing in &#8211; they originally where intended to be dicts, although I guess it would be preferrable for django-tables to use indexing. I can&#8217;t tell if that would help in your case though, or whether you just have a bug in your code. What is &#8220;WSSWSite&#8221;?</p>
<p>I&#8217;d prefer you use the django-apps Google Group for support requests though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Steiner</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-641</link>
		<dc:creator>Steve Steiner</dc:creator>
		<pubDate>Wed, 02 Sep 2009 02:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-641</guid>
		<description>Hey!  Trying to get this to work with Django 1.1 and I get:

Exception Value:	
&#039;WSSWSite&#039; object has no attribute &#039;get&#039;
Exception Location:	/Users/ssteiner/.virtualenvs/wssw1/lib/python2.6/site-packages/django_tables/tables.py in _build_snapshot, line 261

It&#039;s pretty much straight out of the docs, just with my own classes.

Any idea what&#039;s going on?

I searched through the code but get() is not explicitly called anywhere in django-tables anywhere so I&#039;m a little lost...

Thanks,

S</description>
		<content:encoded><![CDATA[<p>Hey!  Trying to get this to work with Django 1.1 and I get:</p>
<p>Exception Value:<br />
&#8216;WSSWSite&#8217; object has no attribute &#8216;get&#8217;<br />
Exception Location:	/Users/ssteiner/.virtualenvs/wssw1/lib/python2.6/site-packages/django_tables/tables.py in _build_snapshot, line 261</p>
<p>It&#8217;s pretty much straight out of the docs, just with my own classes.</p>
<p>Any idea what&#8217;s going on?</p>
<p>I searched through the code but get() is not explicitly called anywhere in django-tables anywhere so I&#8217;m a little lost&#8230;</p>
<p>Thanks,</p>
<p>S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-448</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 17 Dec 2008 07:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-448</guid>
		<description>Erkki,

you should be able to use:

  - &quot;verbose_name&quot; for the column header text.
  - &quot;name&quot; - for the field name.
  - &quot;data&quot; - specify a callable for custom formatting.

In other words, something along those lines might work:

&lt;pre name=&quot;code&quot; class=&quot;python&quot;&gt;
    def format(row):
        if row[&#039;name_to_expose_as&#039;] == 0: return &quot;yes&quot;
        else: return &quot;no&quot;
    name_of_field_in_model = tables.Column(name=&quot;name_to_expose_as&quot;, verbose_name=&quot;column header text&quot;, data=format)
&lt;/pre&gt;

I agree that how the different options interact is somewhat confusing right now, but I&#039;m not yet quite sure what the right way would be to make it more straightforward. I&#039;m reluctant to introduce many more arguments to Column(), since there are already so many, and I suspect that is to some extend where the confusion stems from.

Apart from that, I&#039;d really prefer to use the mailinglist for future discussions.</description>
		<content:encoded><![CDATA[<p>Erkki,</p>
<p>you should be able to use:</p>
<p>  &#8211; &#8220;verbose_name&#8221; for the column header text.<br />
  &#8211; &#8220;name&#8221; &#8211; for the field name.<br />
  &#8211; &#8220;data&#8221; &#8211; specify a callable for custom formatting.</p>
<p>In other words, something along those lines might work:</p>
<pre name="code" class="python">
    def format(row):
        if row['name_to_expose_as'] == 0: return "yes"
        else: return "no"
    name_of_field_in_model = tables.Column(name="name_to_expose_as", verbose_name="column header text", data=format)
</pre>
<p>I agree that how the different options interact is somewhat confusing right now, but I&#8217;m not yet quite sure what the right way would be to make it more straightforward. I&#8217;m reluctant to introduce many more arguments to Column(), since there are already so many, and I suspect that is to some extend where the confusion stems from.</p>
<p>Apart from that, I&#8217;d really prefer to use the mailinglist for future discussions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erkki Tapola</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-442</link>
		<dc:creator>Erkki Tapola</dc:creator>
		<pubDate>Tue, 16 Dec 2008 14:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-442</guid>
		<description>I had a thought on the sorting of the custom columns. If, instead of name, it would be possible to specify column_heading and db_sort_field, you could fashion custom formatted but still sortable columns.

I can accomplish this now with a db column, which contains 0 or 1, which gets custom formatted to &quot;yes&quot; or &quot;no&quot;, but I have to fix the column heading to the db column name.</description>
		<content:encoded><![CDATA[<p>I had a thought on the sorting of the custom columns. If, instead of name, it would be possible to specify column_heading and db_sort_field, you could fashion custom formatted but still sortable columns.</p>
<p>I can accomplish this now with a db column, which contains 0 or 1, which gets custom formatted to &#8220;yes&#8221; or &#8220;no&#8221;, but I have to fix the column heading to the db column name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erkki Tapola</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-441</link>
		<dc:creator>Erkki Tapola</dc:creator>
		<pubDate>Tue, 16 Dec 2008 14:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-441</guid>
		<description>Thank you for the information. I found that the reason for 1) was the missing  in your example (change the latter  to ). In 3) I&#039;m referring to the mechanism which tells the template if the data is currently reverse ordered by this column.</description>
		<content:encoded><![CDATA[<p>Thank you for the information. I found that the reason for 1) was the missing  in your example (change the latter  to ). In 3) I&#8217;m referring to the mechanism which tells the template if the data is currently reverse ordered by this column.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-440</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 16 Dec 2008 12:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-440</guid>
		<description>Erkki,

the latest code is on Launchpad and the Bazaar repository linked to in the post. The current documentation is limited to the README file that is part of the distribution.

Generally, for questions please use the django-apps Group and prefix your message with &quot;(tables)&quot;:

http://groups.google.com/group/django-apps

As for your questions:

1) I&#039;d need some code to reproduce this. Feel free to use django-apps, post a bug report on Launchpad, or send me an email (michael@elsdoerfer.info).

2) The parameter is actually called &quot;order_by&quot; - sorry, a mistake I made in this post here (now fixed). The README should be correct.

3) Sorry, I&#039;m not quite sure what you mean here.</description>
		<content:encoded><![CDATA[<p>Erkki,</p>
<p>the latest code is on Launchpad and the Bazaar repository linked to in the post. The current documentation is limited to the README file that is part of the distribution.</p>
<p>Generally, for questions please use the django-apps Group and prefix your message with &#8220;(tables)&#8221;:</p>
<p><a href="http://groups.google.com/group/django-apps" rel="nofollow">http://groups.google.com/group/django-apps</a></p>
<p>As for your questions:</p>
<p>1) I&#8217;d need some code to reproduce this. Feel free to use django-apps, post a bug report on Launchpad, or send me an email (michael@elsdoerfer.info).</p>
<p>2) The parameter is actually called &#8220;order_by&#8221; &#8211; sorry, a mistake I made in this post here (now fixed). The README should be correct.</p>
<p>3) Sorry, I&#8217;m not quite sure what you mean here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erkki Tapola</title>
		<link>http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/comment-page-1/#comment-439</link>
		<dc:creator>Erkki Tapola</dc:creator>
		<pubDate>Tue, 16 Dec 2008 10:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.elsdoerfer.name/2008/07/09/django-tables-a-queryset-renderer/#comment-439</guid>
		<description>Thank you for the code. You have a good idea.

I got the package from pypi today, and I have few issues with it. Is that the right place to get your latest version? Where can I find additional documentation?

1) Every table column is followed by an empty column. I was able to counter this behaviour by inserting empty TH after each TH with content. Problem seems to be in ModelTable.
2) ModelTable.__init__ doesn&#039;t accept the sort parameter.
3) How to use is_ordered_reverse (should be automatic after item 2 is fixed)?

I agree that your code should be included in contrib, although after some cleanup and documentation.</description>
		<content:encoded><![CDATA[<p>Thank you for the code. You have a good idea.</p>
<p>I got the package from pypi today, and I have few issues with it. Is that the right place to get your latest version? Where can I find additional documentation?</p>
<p>1) Every table column is followed by an empty column. I was able to counter this behaviour by inserting empty TH after each TH with content. Problem seems to be in ModelTable.<br />
2) ModelTable.__init__ doesn&#8217;t accept the sort parameter.<br />
3) How to use is_ordered_reverse (should be automatic after item 2 is fixed)?</p>
<p>I agree that your code should be included in contrib, although after some cleanup and documentation.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

