# HG changeset patch # User fknauft # Date 1304080057 -7200 # Node ID 9e34cd7b2e57c16215678bb60f8680ca90273b4c # Parent b8c4870cf45f6ef201198082170820c69a57391f Upload of xml-tables with empty Cells possible diff -r b8c4870cf45f -r 9e34cd7b2e57 RestDbInterface.py --- 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