google-code-export / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

UpdatePhotoBlob does not work with a file handle #395

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call UpdatePhotoBlob with a file handle instead of a string

What is the expected output? What do you see instead?
It should update the specified photo with the content of the file handle. 
Instead it throws an exception: "UnboundLocalError: local variable 'photoblob' 
referenced before assignment"

What version of the product are you using?
2.0.10

Please provide any additional information below.
The bug is inside gdata/photos/service.py line 561 - here the variable should 
be called "photoblob" instead of "mediasource" to work with the code that 
follows in the function (e.g. line 575, which expects the gdata.MediaSource 
object to be called "photoblob"

Original issue reported on code.google.com by morten...@gmail.com on 29 Jun 2010 at 9:38