<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1660: CSV preview broken - OpenSpending</title>
    <link>http://localhost/ticket/1660</link>
    <description>&lt;p&gt;
This CSV resource used to preview but now the format appears to be unsupported: "We are unable to preview this type of resource: x-osdata-csv"
&lt;/p&gt;
&lt;p&gt;
&lt;a class="ext-link" href="http://thedatahub.org/dataset/lbhf-spending-2010/resource/9661abbd-2816-4d58-8b20-3cb0eb770c69"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;http://thedatahub.org/dataset/lbhf-spending-2010/resource/9661abbd-2816-4d58-8b20-3cb0eb770c69&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
This is used as an example by the &lt;a class="missing wiki"&gt;OpenSpending?&lt;/a&gt; team all the time.
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/1660</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Thu, 26 Jan 2012 21:52:17 GMT</pubDate>
      <title>status changed; resolution, milestone set</title>
      <link>http://localhost/ticket/1660#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1660#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;wontfix&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                set to &lt;em&gt;current-ckan-sprint-2012-02-06&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
The broken-ness arose from a (very sensible) refactor (done by Tom Rees) to be stricter about what we tried to preview.
&lt;/p&gt;
&lt;p&gt;
Rather than hack around the conditions of the format string for previewing, my strong suggestion is to get rid of weird format types like x-osdata-csv (just change it to csv).
&lt;/p&gt;
&lt;p&gt;
An alternative, that would preserve ability to set 'funky' formats would be to set the mimetype correctly (to text/csv) (this may still need an update to the previewer but one that would be sensible to make).
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Thu, 26 Jan 2012 22:26:22 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1660#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1660#comment:2</guid>
      <description>
        &lt;p&gt;
Update: I've done the change I suggested and it now works fine.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>rgrp</dc:creator>

      <pubDate>Tue, 31 Jan 2012 12:40:27 GMT</pubDate>
      <title>keywords set</title>
      <link>http://localhost/ticket/1660#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/1660#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
              &lt;em&gt;0.25d&lt;/em&gt; &lt;em&gt;[a:0.25d]&lt;/em&gt; added
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>