<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #335: Post-package-edit redirect to configurable URL</title>
    <link>http://localhost/ticket/335</link>
    <description>&lt;h2 id="Asa"&gt;As a&lt;/h2&gt;
&lt;p&gt;
third-party interface to a CKAN instance
&lt;/p&gt;
&lt;h2 id="Iwantto"&gt;I want to&lt;/h2&gt;
&lt;p&gt;
link to CKAN's package creation/editing pages. On 'commit', have the user redirected back to a URL in my interface that I can control. Also, when the package is created new, I need to be told what the new package's name is on return.
&lt;/p&gt;
&lt;h2 id="Design"&gt;Design&lt;/h2&gt;
&lt;ol&gt;&lt;li&gt;The 'return URL' is passed as a parameter to CKAN.
&lt;/li&gt;&lt;li&gt;CKAN substitutes the package name into the return URL.
&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
&lt;/p&gt;
&lt;h2 id="Example"&gt;Example&lt;/h2&gt;
&lt;p&gt;
Front-end links to:
http://ca.ckan.net/package/new?return_to=http://datadotgc.ca/dataset/&amp;lt;NAME&amp;gt; (but with the parameter URL-encoded)
&lt;/p&gt;
&lt;p&gt;
When finished editing and the user commits, CKAN redirects the user to: http://datadotgc.ca/dataset/pollution_data
&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/335</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Tue, 01 Jun 2010 16:14:59 GMT</pubDate>
      <title>description changed; owner set</title>
      <link>http://localhost/ticket/335#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/335#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;owner&lt;/strong&gt;
              set to &lt;em&gt;dread&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/335?action=diff&amp;amp;version=1"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Tue, 01 Jun 2010 16:44:57 GMT</pubDate>
      <title>description changed</title>
      <link>http://localhost/ticket/335#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/335#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;description&lt;/strong&gt;
              modified (&lt;a href="/ticket/335?action=diff&amp;amp;version=2"&gt;diff&lt;/a&gt;)
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Tue, 08 Jun 2010 11:49:12 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/335#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/335#comment:3</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;
Done in cset:5c0c0b6e1342
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>dread</dc:creator>

      <pubDate>Thu, 10 Jun 2010 14:20:05 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/335#comment:4</link>
      <guid isPermaLink="false">http://localhost/ticket/335#comment:4</guid>
      <description>
        &lt;p&gt;
On discussion with rgrp it's clear that it's also useful to set the redirect url in a config variable - then the client doesn't have to change. This was done in cset:b9fdd208dd45
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>