Alright,
I've fixed the problem on my end. I redefined the accountToken model
and changed "version" to a IntegerProp instead of a FloatProp. I also
pulled the ".1" off the end of my version number.
Now, the datastore shows it just fine.
Is this a possible bug?
On Sep 17, 5:37 pm, Sam G <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I just updated to the 1.1.3 version of the SDK, and I'm having some
> problems. I can add an entity of the type "newsFeed", and display it
> using the admin console. However, when I add a second entity type
> ("accountToken"), the SDK gives me this stacktrace when I try to go to
> the admin panel:
>
> Traceback (most recent call last):
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\ext\webapp\__init__.py", line 496, in __call__
> handler.get(*groups)
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\ext\admin\__init__.py", line 558, in get
> 'kinds': self.get_kinds(),
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\ext\admin\__init__.py", line 485, in get_kinds
> schema = datastore_admin.GetSchema()
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\api\datastore_admin.py", line 58, in GetSchema
> _Call('GetSchema', req, resp)
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\api\datastore_admin.py", line 124, in _Call
> apiproxy_stub_map.MakeSyncCall('datastore_v3', call, req, resp)
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\api\apiproxy_stub_map.py", line 46, in MakeSyncCall
> stub.MakeSyncCall(service, call, request, response)
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\api\datastore_file_stub.py", line 263, in MakeSyncCall
> (getattr(self, "_Dynamic_" + call))(request, response)
> File "C:\Documents and Settings\sam\workspace\Google AppEngine\google
> \appengine\api\datastore_file_stub.py", line 626, in
> _Dynamic_GetSchema
> value_pb.set_doublevalue(float('-inf'))
> ValueError: invalid literal for float(): -inf
>
> WTF?
>
> Anyway, here is the code that is executed right before I experiece the
> problem:
>
> def UpgradeAndStoreToken(ottoken,userobj,usernick):
> client = gdata.service.GDataService()
> client.SetAuthSubToken(ottoken)
> client.UpgradeToSessionToken()
> new_token = accountToken(key_name=usernick,
> user=userobj,
> token=client.GetAuthSubToken(),
> version=1.1)
> new_token.put()
>
> def step2(request):
> user = users.get_current_user()
>
> token.UpgradeAndStoreToken(request.GET['token'],users.get_current_user(),us
> er.nickname())
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---