What is the best Google App Engine blobstore workflow?

The solution I've come up with for this is not the prettiest but it gets the job done. On the upload view (view that is specified in the create_upload_url function) I'm passing the post variables to the same form class from the first page. If the form is valid I'm saving the variables along with the BlobInfo.

Key to the model. If it is not a valid form I'm saving the errors in memcache and redirecting back to the first page with the variable of error that triggers the view to retrieve the errors from memcache and add them to the form instance So again here's the steps Create form view Check POST variables with the same form from the first view If the form is valid save it along with the BlobInfo. Key, if not save errors to memcache with a small lifespan and redirect to first view with the memcache key in the url Retrieve the form errors from memcache and add them to the new form instance Resubmit the form with errors fixed and save.

The solution I've come up with for this is not the prettiest but it gets the job done. On the upload view (view that is specified in the create_upload_url function) I'm passing the post variables to the same form class from the first page. If the form is valid I'm saving the variables along with the BlobInfo.

Key to the model. If it is not a valid form I'm saving the errors in memcache and redirecting back to the first page with the variable of error that triggers the view to retrieve the errors from memcache and add them to the form instance. So again here's the steps.

Create form view Check POST variables with the same form from the first view If the form is valid save it along with the BlobInfo. Key, if not save errors to memcache with a small lifespan and redirect to first view with the memcache key in the url Retrieve the form errors from memcache and add them to the new form instance Resubmit the form with errors fixed and save.

Memcache seems to sometimes evict things quickly when under high memory pressure, so you might want to save the errors to the datastore (and have a cron job to clean old ones), or simply encode all the errors (if possible) in the url. – Amir Jan 24 at 20:41 I tried both of those first and will eventually go back to the datastore option, but the url option didn't work for me. – man2xxl Jan 28 at 19:19.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions