When retrieving an attachment, you can access the attachmentUrl, and then retrieve the content of that URL using a url fetch (in App Engine). The data attribute is used when creating an attachment.
On Tue, May 25, 2010 at 6:32 AM, technohippy <[email protected]> wrote: > Hi, > I'm trying new attachment api, but I cannot get raw data for an > attachment file. The code I tried is following: > > def on_blip_submitted(self, events, wavelet): > blip = events.blip > attachment_ref = blip.first(element.Attachment) > if attachment_ref: > attachment = attachment_ref.value() > data = attachment.get('data') > logging.info(data) # -> None > > Could someone tell me what's wrong with this code? > > Thanks, in advance. > > Ando Yasushi > > -- > You received this message because you are subscribed to the Google Groups > "Google Wave API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-wave-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-wave-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Wave 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-wave-api?hl=en.
