Somewhere making that reference between entity and blobstore blob
fails in my method. Maybe you know what I'm doing wrong?

class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
  def post(self):
#...get the blob..
#..get form data and make reference
    data = AForm(data=self.request.POST)
    if data and data.is_valid():
     # Save the data, and redirect to the view page
       entity = data.save(commit=False)
       entity.added_by = users.get_current_user()
       im = Image(reference=entity)
       im.primary_image = upload_files
       im.put()
       entity.put()

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en.

Reply via email to