Toolserver:Potd

From mediawiki.org

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

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[edit]

  • blaugher
  • bryan

To report bugs[edit]

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)[edit]

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, become potd and then check the cron job (crontab -e). 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 crontab -e 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