amnextking / typhoonae

Automatically exported from code.google.com/p/typhoonae
0 stars 0 forks source link

Unable to store BlobKey in datastore #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Typhoon is having trouble storing on object of type BlobKey in the datastore, 
by reading the traceback, it's seems likely that there is trouble with 
encoding the object.

What version of the product are you using? On what operating system?
0.1.2 on Ubuntu 9.10

Please provide any additional information below.
The included file contains the Traceback information.

Original issue reported on code.google.com by Noah.Mci...@gmail.com on 3 Feb 2010 at 6:57

Attachments:

GoogleCodeExporter commented 9 years ago
This presumably happens due to a missing datastore type conversion in our 
mongoDB API proxy stub.

Original comment by tobias.r...@gmail.com on 3 Feb 2010 at 10:23

GoogleCodeExporter commented 9 years ago

Original comment by tobias.r...@gmail.com on 3 Feb 2010 at 10:26

GoogleCodeExporter commented 9 years ago
Fixed in the trunk.

Original comment by tobias.r...@gmail.com on 3 Feb 2010 at 11:10

GoogleCodeExporter commented 9 years ago
Another problem has presented itself, I think this defect might be related.

  File "/media/nwm-desktop/d/svn/kitten-ib/src/kitten.py", line 807, in thumbnail
    img_data = img.execute_transforms(output_encoding=output_encoding)
  File 
"/home/nwm/typhoonae/parts/google_appengine/google/appengine/api/images/__init__
.py", 
line 513, in execute_transforms
    response)
  File 
"/home/nwm/typhoonae/parts/google_appengine/google/appengine/api/apiproxy_stub_m
ap.py
", line 78, in MakeSyncCall
    return apiproxy.MakeSyncCall(service, call, request, response)
  File 
"/home/nwm/typhoonae/parts/google_appengine/google/appengine/api/apiproxy_stub_m
ap.py
", line 278, in MakeSyncCall
    rpc.CheckSuccess()
  File 
"/home/nwm/typhoonae/parts/google_appengine/google/appengine/api/apiproxy_rpc.py
", 
line 111, in CheckSuccess
    raise self.exception
NotImplementedError: Storage class must override OpenBlob method.

I think it might be related due to the img object being initialized using a 
blob as 
per google's appengine documentation (ie: it works on the SDK/GAE).

img = images.Image(blob_key=str(self.blob.key()))

Original comment by Noah.Mci...@gmail.com on 3 Feb 2010 at 12:21

GoogleCodeExporter commented 9 years ago
I have filed a new issue #29 for that. Many thanks for digging this out!

Original comment by tobias.r...@gmail.com on 3 Feb 2010 at 5:02

GoogleCodeExporter commented 9 years ago
Fix included in 0.1.2 release.

Original comment by tobias.r...@gmail.com on 8 Feb 2010 at 8:13