Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for the missing-attributes-fix

  • Loading branch information...
commit 748304c23f14af42058aaf638a0ccd845b108492 1 parent d7b1edd
@ntt authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 eveapi.py
View
7 eveapi.py
@@ -25,6 +25,9 @@
# OTHER DEALINGS IN THE SOFTWARE
#
#-----------------------------------------------------------------------------
+# Version: 1.2.2 - 27 February 2012
+# - fix for the workaround in 1.2.1.
+#
# Version: 1.2.1 - 23 February 2012
# - added workaround for row tags missing attributes that were defined
# in their rowset (this should fix ContractItems)
@@ -476,11 +479,11 @@ def tag_start(self, name, attributes):
# columns are overwritten with the tag's version, if required.
numAttr = len(attributes)/2
numCols = len(self.container._cols)
- if numAttr < numCols:
+ if numAttr < numCols and (attributes[-2] == self.container._cols[-1]):
# the row data is missing attributes that were defined in the rowset.
# missing attributes' values will be set to None.
fixed = []
- row_idx = 0; hdr_idx = 0;
+ row_idx = 0; hdr_idx = 0; numAttr*=2
for col in self.container._cols:
if col == attributes[row_idx]:
fixed.append(_autocast(col, attributes[row_idx+1]))
Please sign in to comment.
Something went wrong with that request. Please try again.