More group aggregation

Our internal departmental blog aggregator is up and running thanks to the planetplanet.org software, a twiki running on the Sun webserver and a vers short nawk script. I know it should have been perl, but as is so often the case nwak will do. Specifically this nawk will do:

nawk '$0 == "%META:TOPICPARENT{name=\\"TWikiUsers\\"}%" {
        user=1
        next
}
$0 ~ "\^%META:TOPICPARENT" {
        user=0
}
$1 == "\*" && $2 == "Name:" {
        sub("[ \\t]\*\\\\\*[ \\t]Name:[ \\t]","");
        n=$0
}
user && /\\\* PlanetPts [Ff]eed/  {
        printf("\\n[%s]\\nname = %s\\n", $NF, n)}' 

Users just have to put an entry in there home page on the twiki, the nawk script sucks those entries out and writes the config file for the planet software that then aggregates them all. They then all get displayed within the same twiki thanks to the %INCLUDE% variable so that they appear to be part of the main web.

I'm sure there are better ways to do this and with a bit more infrastructure help it would be cool to be able to register your blog feed in LDAP and then have an aggregator use that to produce planets based on reporting structures. However for us I think this will do for now.

Comments:

Post a Comment:
Comments are closed for this entry.
About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today