Hey folks, I'm working on a script to collect blog/name/hackergotchi entries from users homedirs on fedorapeople.org and assemble them into a config file for planet to use. All the bits about grabbing the files are clearly simple. My only question is this: - Should I just have the user put one (or more) planet config stanzas in a file in their homedir or have them list just the blog feed url, the hackergotchi url and their name and try to parse that out?
I'm inclined to the former. So a user could just have a .planet file that has:
[http://skvidal.wordpress.com/feed/] name = Seth Vidal face = http://skvidal.fedorapeople.org/skvidal.png
which I could read in using configparser, throw out errors about any duplicates and also balk if someone tries to over [Planet] or something like that.
so, I wanted some feedback on what people thought would be the better choice.
thanks, -sv
seth vidal (skvidal@fedoraproject.org) said:
Hey folks, I'm working on a script to collect blog/name/hackergotchi entries from users homedirs on fedorapeople.org and assemble them into a config file for planet to use. All the bits about grabbing the files are clearly simple. My only question is this:
- Should I just have the user put one (or more) planet config stanzas
in a file in their homedir or have them list just the blog feed url, the hackergotchi url and their name and try to parse that out?
I'm inclined to the former. So a user could just have a .planet file that has:
[http://skvidal.wordpress.com/feed/] name = Seth Vidal face = http://skvidal.fedorapeople.org/skvidal.png
Would there be a good way to blacklist entries if we needed to in a rush? Or would we just edit the master config and disable the script?
Bill
On Thu, 2008-05-08 at 11:50 -0400, Bill Nottingham wrote:
seth vidal (skvidal@fedoraproject.org) said:
Hey folks, I'm working on a script to collect blog/name/hackergotchi entries from users homedirs on fedorapeople.org and assemble them into a config file for planet to use. All the bits about grabbing the files are clearly simple. My only question is this:
- Should I just have the user put one (or more) planet config stanzas
in a file in their homedir or have them list just the blog feed url, the hackergotchi url and their name and try to parse that out?
I'm inclined to the former. So a user could just have a .planet file that has:
[http://skvidal.wordpress.com/feed/] name = Seth Vidal face = http://skvidal.fedorapeople.org/skvidal.png
Would there be a good way to blacklist entries if we needed to in a rush? Or would we just edit the master config and disable the script?
I was thinking of just having a 'ignore users' config option for the script so it would just skip their dirs if there was a problem.
-sv
On Thu, May 8, 2008 at 11:57 AM, seth vidal skvidal@fedoraproject.org wrote:
Should I just have the user put one (or more) planet config stanzas in a file in their homedir or have them list just the blog feed url, the hackergotchi url and their name and try to parse that out?
I'm inclined to the former. So a user could just have a .planet file that has:
[http://skvidal.wordpress.com/feed/] name = Seth Vidal face = http://skvidal.fedorapeople.org/skvidal.png
I would lean towards using a .planet file with a config stanza similar to your example. Easy to read and easy to document on the wiki for the format.
I was thinking of just having a 'ignore users' config option for the script so it would just skip their dirs if there was a problem.
Having this as an option would be a good thing as well, should the need arise in the future.
~Jeffrey
seth vidal wrote:
On Thu, 2008-05-08 at 11:50 -0400, Bill Nottingham wrote:
seth vidal (skvidal@fedoraproject.org) said:
Hey folks, I'm working on a script to collect blog/name/hackergotchi entries from users homedirs on fedorapeople.org and assemble them into a config file for planet to use. All the bits about grabbing the files are clearly simple. My only question is this:
- Should I just have the user put one (or more) planet config stanzas
in a file in their homedir or have them list just the blog feed url, the hackergotchi url and their name and try to parse that out?
I'm inclined to the former. So a user could just have a .planet file that has:
[http://skvidal.wordpress.com/feed/] name = Seth Vidal face = http://skvidal.fedorapeople.org/skvidal.png
Add here probably a "language" for when/if we will have language based sub-planets. It is possible to have multiple values, like language = english, french for the case when someone blogs about half the time in one language and half in another?
On the topic of multiple values (if possible), how about "group", so we have the possibility of running sub-planet for distinct groups based on their area of activity, like an aggregation of the "art" people, or "developers" or "ambassadors", etc. Like: group = art, ambassadors, marketing
Would there be a good way to blacklist entries if we needed to in a rush? Or would we just edit the master config and disable the script?
I was thinking of just having a 'ignore users' config option for the script so it would just skip their dirs if there was a problem.
I think this sounds fair.
On Thu, 2008-05-08 at 19:20 +0300, Nicu Buculei wrote:
Add here probably a "language" for when/if we will have language based sub-planets. It is possible to have multiple values, like language = english, french for the case when someone blogs about half the time in one language and half in another?
actually I was thinking of just having different .planet files:
.planet.fr == planet french .planet.art = planet art
etc, etc.
a simple type of group.
-sv
On Thu, 2008-05-08 at 12:44 -0400, seth vidal wrote:
On Thu, 2008-05-08 at 19:20 +0300, Nicu Buculei wrote:
Add here probably a "language" for when/if we will have language based sub-planets. It is possible to have multiple values, like language = english, french for the case when someone blogs about half the time in one language and half in another?
actually I was thinking of just having different .planet files:
.planet.fr == planet french .planet.art = planet art
etc, etc.
a simple type of group.
+1 ... I like the whole thing, this is a nice level of self-service.
- Karsten
seth vidal wrote:
I'm inclined to the former. So a user could just have a .planet file that has:
[http://skvidal.wordpress.com/feed/] name = Seth Vidal face = http://skvidal.fedorapeople.org/skvidal.png
which I could read in using configparser, throw out errors about any duplicates and also balk if someone tries to over [Planet] or something like that.
so, I wanted some feedback on what people thought would be the better choice.
I have some more questions about the policy:
- is someone allowed to put more than one feed? Like his blog and a foto gallery or his personal blog and the news feed from a local Fedora community site. Of course one can aggregate his own multiple feeds into single one and use that aggregated feed (for example using Google Reader, and we can provide a short documentation about doing so). OTOH, technically one can put more entries in one .planet file and it should be parsed correctly;
- I assume you plan a check of those .planet files against malicious use, so they have only the allowed entries (and not, for example, values that override the defaults, like the output directory, template locations or whatever);
- not sure if this is worth pursuing, but I found gregdek's idea [1] interesting: use hackergotchis to create a set of stickers. Here is the issue of people wanting/not wanting their images to be used and the license of the submitted images.
[1] - http://gregdek.livejournal.com/26387.html
On Fri, 2008-05-09 at 09:43 +0300, Nicu Buculei wrote:
I have some more questions about the policy:
what policy? There's no policy.
- is someone allowed to put more than one feed? Like his blog and a foto
gallery or his personal blog and the news feed from a local Fedora community site. Of course one can aggregate his own multiple feeds into single one and use that aggregated feed (for example using Google Reader, and we can provide a short documentation about doing so). OTOH, technically one can put more entries in one .planet file and it should be parsed correctly;
People are already allowed to have more than one feed entry. Most folks don't, but there's nothing stopping it. And the code I have already handles multiple entries per .planet file.
- I assume you plan a check of those .planet files against malicious
use, so they have only the allowed entries (and not, for example, values that override the defaults, like the output directory, template locations or whatever);
yes.
- not sure if this is worth pursuing, but I found gregdek's idea [1]
interesting: use hackergotchis to create a set of stickers. Here is the issue of people wanting/not wanting their images to be used and the license of the submitted images.
I think we're getting a bit afield of where we started.
here's the (completely untested) code I have so far: http://skvidal.fedorapeople.org/misc/planetconfigbuilder.py
-sv
On Fri, 2008-05-09 at 08:07 -0400, seth vidal wrote:
here's the (completely untested) code I have so far: http://skvidal.fedorapeople.org/misc/planetconfigbuilder.py
okay, it's tested and works fine, now. I just need to add a few config things and it should be ready for use. -sv
infrastructure@lists.fedoraproject.org