librelist archives

« back to archive

Post aliases

Post aliases

From:
Christian Joergensen
Date:
2011-10-03 @ 19:41
Attached is a patch to allow aliases to posts:

.. aliases: /my-post-alias/

By default, you will be redirected using a 302 header, but you can
specify a 301 (permanent redirect) using this syntax:

.. aliases: 301:/my-post-alias/

A post can have multiple aliases:

.. aliases: 301:/my-post-alias/,/foobar/

Please let me know if I'm interfacing flask correctly, as I'm not used
to working with flask.

You can include this in your release version if you want, I'm just
throwing this out there so anyone can use it :)

Regards,
Christian

-- 
Christian Joergensen
http://www.technobabble.dk

Re: [blohg] Post aliases

From:
Rafael Martins
Date:
2011-10-04 @ 03:03
On Mon, Oct 3, 2011 at 4:41 PM, Christian Joergensen
<christian@technobabble.dk> wrote:
> Attached is a patch to allow aliases to posts:
>
> .. aliases: /my-post-alias/
>
> By default, you will be redirected using a 302 header, but you can
> specify a 301 (permanent redirect) using this syntax:
>
> .. aliases: 301:/my-post-alias/
>
> A post can have multiple aliases:
>
> .. aliases: 301:/my-post-alias/,/foobar/
>
> Please let me know if I'm interfacing flask correctly, as I'm not used
> to working with flask.
>
> You can include this in your release version if you want, I'm just
> throwing this out there so anyone can use it :)
>
> Regards,
> Christian
>
> --
> Christian Joergensen
> http://www.technobabble.dk
>

Nice job Christian,

I'll review it asap. btw, can you please send a simple documentation patch also?

Thanks

-- 
Rafael Goncalves Martins
http://rafaelmartins.eng.br/

Re: [blohg] Post aliases

From:
Christian Joergensen
Date:
2011-10-04 @ 17:54
On Tue, Oct 4, 2011 at 05:03, Rafael Martins
<rafael@rafaelmartins.eng.br> wrote:
> On Mon, Oct 3, 2011 at 4:41 PM, Christian Joergensen
> <christian@technobabble.dk> wrote:
>> Attached is a patch to allow aliases to posts:

[...]

> I'll review it asap. btw, can you please send a simple documentation patch also?

Sure, I have attached a new patch to replace the old one.

Regards,
Christian

-- 
Christian Joergensen
http://www.technobabble.dk

Re: [blohg] Post aliases

From:
Rafael Martins
Date:
2011-10-06 @ 02:26
On Tue, Oct 4, 2011 at 2:54 PM, Christian Joergensen
<christian@technobabble.dk> wrote:
> On Tue, Oct 4, 2011 at 05:03, Rafael Martins
> <rafael@rafaelmartins.eng.br> wrote:
>> On Mon, Oct 3, 2011 at 4:41 PM, Christian Joergensen
>> <christian@technobabble.dk> wrote:
>>> Attached is a patch to allow aliases to posts:
>
> [...]
>
>> I'll review it asap. btw, can you please send a simple documentation 
patch also?
>
> Sure, I have attached a new patch to replace the old one.
>
> Regards,
> Christian
>
> --
> Christian Joergensen
> http://www.technobabble.dk
>

Hi Christian,

I applied your patch.

I also did some minor logic and coding style fixes [1], like allow
aliases for pages and not just posts. Let me know if I broke
something.

Thanks a lot!


-- 
Rafael Goncalves Martins
http://rafaelmartins.eng.br/

Re: [blohg] Post aliases

From:
Rafael Martins
Date:
2011-10-06 @ 02:26
On Wed, Oct 5, 2011 at 11:26 PM, Rafael Martins
<rafael@rafaelmartins.eng.br> wrote:
> On Tue, Oct 4, 2011 at 2:54 PM, Christian Joergensen
> <christian@technobabble.dk> wrote:
>> On Tue, Oct 4, 2011 at 05:03, Rafael Martins
>> <rafael@rafaelmartins.eng.br> wrote:
>>> On Mon, Oct 3, 2011 at 4:41 PM, Christian Joergensen
>>> <christian@technobabble.dk> wrote:
>>>> Attached is a patch to allow aliases to posts:
>>
>> [...]
>>
>>> I'll review it asap. btw, can you please send a simple documentation 
patch also?
>>
>> Sure, I have attached a new patch to replace the old one.
>>
>> Regards,
>> Christian
>>
>> --
>> Christian Joergensen
>> http://www.technobabble.dk
>>
>
> Hi Christian,
>
> I applied your patch.
>
> I also did some minor logic and coding style fixes [1], like allow
> aliases for pages and not just posts. Let me know if I broke
> something.
>
> Thanks a lot!
>
>

I forgot the link:

[1] http://hg.rafaelmartins.eng.br/blohg/rev/78e4aaf2a522

-- 
Rafael Goncalves Martins
http://rafaelmartins.eng.br/