On Feb 2, 6:02 pm, Will <vocalster....@gmail.com> wrote: > Thanks, it finally worked. Following your suggestion, what I did is: > > 1. in class body, define: > content = db.BlobProperty(required=False) # notice required > is set to False > > 2. in __init__(arg1, arg2, ...): > self.content = '' > > Then > self.content += src > > doesn't complain anymore. > > When accessing, it returns a db.Blog doesn't sound too foreign to me. For > now, I just think it as a customized type caster in C++. > You can also use the 'default' parameter instead of initialising the 'content' value in the constructor:
content = db.BlobProperty(default='') --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---