from google.appengine.ext import db

class Foo(db.Model):
  b = db.BlobProperty()
  def butWhy(self, s):
    self.b = self.b + s

f = Foo(
  b = "Append to a Blob?"

)

f.butWhy(" You can, but why?")

print f.b  # "Append to a Blob? You can, but why?"

I suspect you should be using a Text property.





On Jan 23, 11:20 am, Will <vocalster....@gmail.com> wrote:
> Hi all,
>
> I'd like to append a byte string to a db.BlobProperty, but can't figure out
> how. For example,

> Any ideas? Thanks in advance.
>
> Will
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to