Re: Ticket #3297 & Newforms Image Uploading

2007-06-23 Thread Bryan Veloso
On Jun 23, 2:41 pm, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > for n in range(0, MAX_NUM_UPLOADS): > > img_manip = ImageAttachment.AddManipulator() > > img_obj = img_manip.save() > > uploaded = clean_data['img_fld%d' % n] > > obj.save_image_file(uploaded['filename'],

Re: Ticket #3297 & Newforms Image Uploading

2007-06-23 Thread Bryan Veloso
> for n in range(0, MAX_NUM_UPLOADS): > img_manip = ImageAttachment.AddManipulator() > img_obj = img_manip.save() > uploaded = clean_data['img_fld%d' % n] > obj.save_image_file(uploaded['filename'], uploaded['content']) What library did you have to import to get ImageAttachment

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Nimrod A. Abing
On 6/23/07, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > > Can't paste the code from the actual app (am under NDA) but the logic > > in saving the image from form data is here: > > > > http://dpaste.com/12731/ > > The only problem with this, and probably why I'm looking to use #3297 > (which

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Bryan Veloso
> Can't paste the code from the actual app (am under NDA) but the logic > in saving the image from form data is here: > > http://dpaste.com/12731/ The only problem with this, and probably why I'm looking to use #3297 (which actually didn't work too well anyway), is because I have as many as 15

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Nimrod A. Abing
On 6/22/07, Dirk van Oosterbosch, IR labs <[EMAIL PROTECTED]> wrote: > This is what I did for the field validation http://dpaste.com/12715/ > > the code to save the field data is in the view that uses this form. > Nice! Would you maybe be willing to share your view code too? Can't paste the code

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Dirk van Oosterbosch, IR labs
On 22-jun-2007, at 6:22, Nimrod A. Abing wrote: > I have managed to do > so either by processing in the view or extending the form. As of now, > all processing of all forms occur in the view and validation for file > and image fields in a method of the form. > > This is what I did for the field

Re: Ticket #3297 & Newforms Image Uploading

2007-06-22 Thread Bryan Veloso
> You can always write the code to process File/Image fields in the view > or just extend your form to handle them properly. I have managed to do > so either by processing in the view or extending the form. As of now, > all processing of all forms occur in the view and validation for file > and

Re: Ticket #3297 & Newforms Image Uploading

2007-06-21 Thread Nimrod A. Abing
On 6/22/07, Bryan Veloso <[EMAIL PROTECTED]> wrote: > > RE: http://code.djangoproject.com/ticket/3297 > > I'm wondering if anybody has actually used this patch for a production > site. If not, then I'll put off a certain feature of my site until > later. The patch is really tempting though, so I

Ticket #3297 & Newforms Image Uploading

2007-06-21 Thread Bryan Veloso
RE: http://code.djangoproject.com/ticket/3297 I'm wondering if anybody has actually used this patch for a production site. If not, then I'll put off a certain feature of my site until later. The patch is really tempting though, so I wanted to get a better outlook of experiences before taking the