Index: trunk/tools/editor_trends/etl/variables.py |
— | — | @@ -19,7 +19,9 @@ |
20 | 20 | __version__ = '0.1' |
21 | 21 | |
22 | 22 | import hashlib |
| 23 | +from xml.etree.cElementTree import dump |
23 | 24 | |
| 25 | + |
24 | 26 | def validate_hostname(address): |
25 | 27 | ''' |
26 | 28 | This is not a foolproof solution at all. The problem is that it's really |
— | — | @@ -49,6 +51,9 @@ |
50 | 52 | |
51 | 53 | |
52 | 54 | def extract_revision_text(revision): |
| 55 | + dump(revision) |
| 56 | + if revision.text == None: |
| 57 | + revision.text = fix_revision_text(revision) |
53 | 58 | return revision.text |
54 | 59 | # rev = revision.find('ns0:text') |
55 | 60 | # if rev != None: |