r86066 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86065‎ | r86066 | r86067 >
Date:18:51, 14 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
Debug information for XML elements.
Modified paths:
  • /trunk/tools/editor_trends/etl/variables.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/variables.py
@@ -19,7 +19,9 @@
2020 __version__ = '0.1'
2121
2222 import hashlib
 23+from xml.etree.cElementTree import dump
2324
 25+
2426 def validate_hostname(address):
2527 '''
2628 This is not a foolproof solution at all. The problem is that it's really
@@ -49,6 +51,9 @@
5052
5153
5254 def extract_revision_text(revision):
 55+ dump(revision)
 56+ if revision.text == None:
 57+ revision.text = fix_revision_text(revision)
5358 return revision.text
5459 # rev = revision.find('ns0:text')
5560 # if rev != None: