You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of a datastore query, I get back entities that have a KeyProperty. When trying to call a .id() on the KeyProperty, I get the following TypeError thrown:
TypeError: 'long' object is not callable
Upon examining the particular key, I see this (obfuscated):
Not sure exactly where the TypeError is being thrown, but it looks like the 'id' is being interpreted as a long somehow, when it's actually a standard integer.
I've had to workaround this by doing the following:
Key._path[0].get('id')
As part of a datastore query, I get back entities that have a KeyProperty. When trying to call a .id() on the KeyProperty, I get the following TypeError thrown:
TypeError: 'long' object is not callable
Upon examining the particular key, I see this (obfuscated):
<Key[{'kind': u'xxxx', 'id': 1234567890L}], project=xxxx>
Not sure exactly where the TypeError is being thrown, but it looks like the 'id' is being interpreted as a long somehow, when it's actually a standard integer.
I've had to workaround this by doing the following:
Key._path[0].get('id')