On 11.09.2008, at 20:31, Anthony Bryan wrote:
---------- Forwarded message ----------
From: Florian Effenberger <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED],
[email protected]
Date: Thu, 11 Sep 2008 11:49:29 +0200
Subject: volunteers for maintaining mirror list
Hello there,
as my todo list regarding mirroring is growing and growing, it
seems that I've just got too much workload so I'm unable to
maintain the mirror pages in time. All new mirrors are added to
the Bouncer, but when it comes to maintaining the HTML, I'm los.
Is anyone on this list who wants to volunteer for maintaining the
HTML pages? Details can also be found at http://
wiki.services.openoffice.org/wiki/Mirror_Listkeeping
Any help would be greatly appreciated!
this sounds like something that would be useful for MirrorBrain to
have a template or something for HTML output, so pages didn't need to
be manually maintained anymore.
Peter, would this be possible?
Sure. Everything is in a database, so it could be used in various ways.
I have a python module that makes it pretty easy to access, and a
list could be generated with a simple script as this:
#!/usr/bin/python
import mb.conf
import mb.conn
config = mb.conf.Config()
conn = mb.conn.Conn(config.dbconfig)
mirrors = conn.Server.select()
for i in mirrors:
# show only the alive mirrors
if i.enabled and i.status_baseurl:
print """%s <a href="%s">%s</a>""" \
% (i.country,
i.baseurl,
i.identifier)
# and so on. Showing only some fields here.
While this fits my way of thinking, of course the same could be done
in a web app, PHP, or whatever.
A template would be easy to come up with, or adding additional fields
to the database for certain info.
I would have guessed that Bouncer has a database as well, and I was a
bit surprised that the mirror web page I went through had some (HTML)
errors, which indicate that it is hand-edited. At any rate, an
automated mirror list would be nice for Bouncer as well I guess!
Peter
--
God made the world in six days and was arrested on the seventh.
Ambrose Bierce, The Devil's Dictionary, 1911.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]