What about adding a method to MediaSource letting us using a string
instead of a file on a filesystem:

class tmpMediaSource(gdata.MediaSource):
 def loadString(self, data, content_type, file_name):
   self.file_handle = StringIO.StringIO(data)
   self.content_type = content_type
   self.content_length = len(data)
   self.file_name = file_name

All the best,

Samuel T. Cossette

On Oct 10, 5:42 pm, Amelie Mercier <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using the gdata python library to interact with Picasa.
>
> How could I use something else than a file handle as my media_source
> in GDataService.Post?
>
> Thanks,
>
> --am


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to