[ckan-discuss] Redirecting add/edit package form
David Read
david.read at okfn.org
Mon Apr 12 23:11:24 BST 2010
Colin,
Almost there...! This is the way:
redirect('http://www.datadotgc.ca/%s' % h.url_encode(pkgname), code=303)
I've made the change on your server and I think it is doing what you
want now, for both creating and new and editing an existing package.
All the best,
David
On 12 April 2010 20:09, Colin Calnan <colin at raisedeyebrow.com> wrote:
> It didn't work.
>
> I've tired redirecting to a page on ca.ckan.net like h.redirect_to('/tag').
>
> Any ideas?
>
> Colin
> *Colin Calnan | Front End Developer*
> Raised Eyebrow Web Studio
> www.raisedeyebrow.com <http://www.raisedeyebrow.com>
> T. 604.684.2498, ext. 5 | E. colin at raisedeyebrow.com
> UFCW Local 120B
>
>
> Rufus Pollock wrote:
>>
>> On 12 April 2010 18:30, Colin Calnan <colin at raisedeyebrow.com> wrote:
>> [...]
>>
>>>
>>> I had a look in /controllers/package.py - line 213:
>>> h.redirect_to(action='read', id=pkgname).
>>>
>>> Is it possible that I could just change that to read -
>>> h.redirect_to('http://www.datadotgc.ca/%s' % pkgname) ?
>>>
>>
>> The answer should be yes :) Try it and see ...
>>
>> Rufus
>>
>
>
> _______________________________________________
> ckan-discuss mailing list
> ckan-discuss at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-discuss
>
More information about the ckan-discuss
mailing list