~nmu-sscheel/gtg/rework-task-editor

« back to all changes in this revision

Viewing changes to GTG/tools/taskxml.py

  • Committer: Bertrand Rousseau
  • Date: 2012-05-09 22:33:25 UTC
  • mfrom: (1178 trunk)
  • mto: This revision was merged to the branch mainline in revision 1179.
  • Revision ID: bertrand.rousseau@gmail.com-20120509223325-a53d8nwo0x9g93bc
Merge nimit branch and trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
 
29
29
def get_text(node):
30
 
    return node.firstChild.nodeValue.strip()
 
30
    if len(node.childNodes) > 0:
 
31
        return node.firstChild.nodeValue.strip()
 
32
    else:
 
33
        return ""
31
34
 
32
35
def read_node(xmlnode, name):
33
36
    node_list =xmlnode.getElementsByTagName(name)