Toolserver:Potd

Simple Python script (dailyimagel.py) run once a day via cron to generate the mails for the daily-image-l mailing list.

Under SVN: http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/daily-image-l/

Maintainers

 * blaugher
 * bryan

To report bugs
Assign us bugs in JIRA or better, leave a comment at http://commons.wikimedia.org/wiki/Commons_talk:Daily-image-l if you notice it misbehaving (sometimes it gets stuck or cron misbehaves).

Common problems (for maintainers)
The most common problem is that the mail stops being sent. This is usually because of the server being moved etc and the cron job has disappeared. Log in to stable,  and then check the cron job. There should just be one (non-commented) line there. If there is not, look for a text file called crontab in the project home dir. Do  and copy its contents in there.

Another "problem" is that instead of a mail being sent, a maintainer gets a mail saying "Error" and usually IndexError. This comes about because the script tries to parse a FP "category" from the image's backlinks (actually, a subpage of Commons:Featured_pictures). If the image was mistakenly never placed on such a subpage, it won't be able to find that backlink. This is flagged as an error so that you can go and actually fix it! Put that day's POTD on one of the subpages, log in and re-run the script. Then it should be fine.

Category:Stable projects