sourcepirate / force-app-engine

Automatically exported from code.google.com/p/force-app-engine
0 stars 0 forks source link

KeyError w/ upsert call #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use upsert call
2.
3.

What is the expected output? What do you see instead?

  File "/home/jwilder/mini/deps/beatbox/python_client.py", line 321, in upsert
    d['isCreated'] = _bool(r[_tPartnerNS.isCreated])
  File
"/Users/rhess/Documents/workspace332/force-app-engine/python/beatbox/xmltramp.py
",
line 143, in __getitem__
KeyError

What version of the product are you using? On what operating system?

Latest version downloaded

Please provide any additional information below.

Can fix this by changing line 321 from:
    d['isCreated'] = _bool(r[_tPartnerNS.isCreated])
to:
    d['isCreated'] = _bool(r[_tPartnerNS.created])

Original issue reported on code.google.com by jwilderl...@gmail.com on 20 Jan 2010 at 9:02