<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #1088: content-type autonegotiation is wonky</title>
    <link>http://localhost/ticket/1088</link>
    <description>&lt;p&gt;
in ckan/controllers/package.py around line 130 it does some strange things...
&lt;/p&gt;
&lt;p&gt;
perhaps replace with &lt;a class="ext-link" href="https://github.com/wwaites/autoneg"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/wwaites/autoneg&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
and handle redirection of these content types:
&lt;/p&gt;
&lt;pre class="wiki"&gt;application/rdf+xml
application/turtle
text/plain
text/x-graphviz
&lt;/pre&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/1088</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>wwaites</dc:creator>

      <pubDate>Tue, 12 Apr 2011 17:50:24 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/1088#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/1088#comment:1</guid>
      <description>
        &lt;p&gt;
you use the negotiate function in autoneg.py with a cfg dictionary like this,
&lt;/p&gt;
&lt;pre class="wiki"&gt;cfg = {
    "mime_types": [
        ("application/xhtml+xml", ["html"]),
        ("text/html", ["html"],
        ("application/rdf+xml", ["rdf", "owl"]),
        ("application/turtle", ["ttl"]),
        ("text/plain", ["nt"]),
        ("text/x-graphviz", ["dot"]),
        ]
for content_type, exts in negotiate(cfg, accept_header):
    if "html" in exts:
        render page normally
    else:
        redirect to semantic.ckan.net
}
&lt;/pre&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>wwaites</dc:creator>

      <pubDate>Sun, 17 Apr 2011 10:18:07 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/1088#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/1088#comment:2</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;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
fixed in 5c091fc08474 (bug-1088-autoneg-is-wonky) tip
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>