I suppose the clean way to do this is to add stuff to the user's
session in the blob handler, and then pick it up in the GET request
that we redirect to.

Not too hard, though from the perspective of the Django forms API not
a natural fit.

Cheers,
Dave

On Dec 15, 2:17 pm, Dave Peck <[email protected]> wrote:
> Hi,
>
> This morning I started to modify the code to CityGoRound to use the
> blobstore for user-uploaded screenshots.
>
> We use Django forms in our app. One of our forms (http://
> citygoround.org/apps/add/) allows users to upload a new "transit app"
> to our app gallery. They must include one screenshot; they can include
> up to five.
>
> Blob store handlers must issue a 30x-series redirect once they're done
> with their work. Understandable.
>
> Unfortunately, PGR makes handling blobs in the context of Django forms
> fairly tricky. Especially for a complex form like ours, we want to
> provide good feedback if the user does something wrong elsewhere in
> the form. It appears that, in order to do this, we must now redirect
> to a GET URL with form contents part of the URL string itself.
>
> If you're familiar with Django, you'll see what this doesn't fit into
> the typical form pattern. Does anyone have suggestions about how this
> can be cleanly handled?
>
> PS: I notice that if a user fails to attach a file, a zero-length blob
> with mimetype 'text/plain' is created anyway. Is this really
> desirable? I'm just going to turn around and delete that blob...
>
> Thanks,
> Dave

--

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