Mercurial > hg > ChinaGisRestApi
changeset 230:9e34cd7b2e57
Upload of xml-tables with empty Cells possible
author | fknauft |
---|---|
date | Fri, 29 Apr 2011 14:27:37 +0200 |
parents | b8c4870cf45f |
children | 0a3303682712 |
files | RestDbInterface.py |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/RestDbInterface.py Thu Apr 28 17:30:31 2011 +0200 +++ b/RestDbInterface.py Fri Apr 29 14:27:37 2011 +0200 @@ -582,12 +582,13 @@ if len(dataNodes) > 0: dataIndex=0 if colNode.hasAttribute(u'ss:Index'): - dataIndex=colNode.getAttribute(u'ss:Index') - if dataIndex>lineIndex: + dataIndex=int(colNode.getAttribute(u'ss:Index')) + while dataIndex>lineIndex: data.append(None) - lineIndex+=1 - val = getTextFromNode(dataNodes[0]) - hasData = True + lineIndex+=1 + else: + val = getTextFromNode(dataNodes[0]) + hasData = True else: val = None