Short tip: License-data with planet

Thursday, June 1. 2006, 17:52
planet is a famous python software to combine the feeds of various blogs (or other feed-sources) to one website. It's used by various free software projects, organizations etc.

While thinking about creating a planet karlsruhe, I thought about possible licensing/copyright problems, in theory you would have to ask everyone you aggregate. As there are many blogs using free or semi-free licenses like FDL or Creative Commons that at least allow re-distributing unchanged content if you stick with the license, adding license-data would make it perfectly legal to add those feeds without asking.

planet is already flexible enough to do this, as you can just add additional variables. Change the config.ini to something like this:

[http://www.hboeck.de/feeds/atom.xml]
name = Hanno Böck
license_name = Creative Commons by-sa
license_link = http://creativecommons.org/licenses/by-sa/2.5/


Add some Code to the template:

<TMPL_IF channel_license_name>
<TMPL_IF channel_license_link><a href="<TMPL_VAR channel_license_link ESCAPE="HTML">"></TMPL_IF>
<TMPL_VAR channel_license_name ESCAPE="HTML">
<TMPL_IF channel_license_link></a></TMPL_IF>
</TMPL_IF>


And you're done.

Trackbacks

No Trackbacks

Comments
Display comments as (Linear | Threaded)

i need to see my id
#1 david on 2006-06-23 18:13 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.