Python talk:CommonsDelinker

From Botwiki

Jump to: navigation, search

Contents

[edit] MySQL log

Log of performed MySQL actions on the running CommonsDelinker.

  • I did UPDATE u_orgullo_logs SET newimg = NULL WHERE newimg = "NULL"; on the database. Due some broken code, the bot inserts the string "NULL" into the database, instead of the NULL value. -- Bryan (talk to me) 11:34, 26 May 2007 (UTC)

[edit] ToDo/Bug list

  • TODO: Dying MySQL connection also causes one CheckUsage or one Logger thread to die.
  • TODO: exists() must be implemented in checkusage.CheckUsage instead of the way it is checked now in check_usage()

[edit] Delinking is just a special case of replacing...

I just realized this. Delinking is just replacing with an empty string (sort of). This basically means that the best way to create a replacer, is to rewrite retirar_imagem() such that it accepts an optional replacement parameter. The only other thing that has to be done then, is a method that reads a list to replace. Bryan 19:06, 31 May 2007 (UTC)

[edit] Subversion

I have created a subversion repository repository for the CommonsDelinker. Botwiki is a wiki; it's not quite suitable for large number commits, and it is too slow. For instructions on how to use subversion, see the page.

Siebrand: You can checkout the live version by using, when being in the pywikipedia subdirectory using svn checkout http://hemlock.knams.wikimedia.org/bryan/subversion/CommonsDelinker/branches/live .<code> (Note the dot)

If anybody needs write access, contact me on IRC. Bryan 17:31, 1 June 2007 (UTC)