Tech:Pywikipedia message parsing broken

From Wikitravel Shared
Jump to: navigation, search

What happens[edit]

Between 23 Oct and 24 Oct, this regexp in pywikipedia stopped working:

  print 'Parsing MediaWiki messages'
  # First group is MediaWiki key string. Second group is the current 
value string.
  itemR = re.compile("<tr bgcolor=\"#[0-9a-f]{6}\"><td>\n"
                      + "\s*<a#href=.+?>(.+?)<\/a><br \/>\n"
                      + "\s*<a#href=.+?>.+?<\/a>\n"
                      + "\s*</td><td>\n"
                      + "\s*(.+?)\n"
                      + "\s*</td><td>\n"
                      + "\s*.+?\n"
                      + "\s*<\/td><\/tr>", re.DOTALL)

I don't know why and I don't have time to figure this out now, so I've just disabled checking for errors for now (garr)... User:Jpatokal

Italian Wikitravel was having some bad performance problems due to translation issues, and I turned off database messages for a while to see if I could fix it. This might be the source of your problem. Otherwise, can you give me some more specifics? Does it not work on any language, or just one language? --Evan 11:29, 24 October 2006 (EDT)
Didn't test anything other than en: yet. I'll try to figure out what actual message is later... Jpatokal 22:37, 24 October 2006 (EDT)

When it happens[edit]

What should happen[edit]

How to fix it[edit]