Arun, did you read this?
On Dec 25, 1:18 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
> Actually... this is correct
>
>   image = db.pictures.image.store(form.vars.image.file,
> form.vars.image.filename)
>
> this is not correct (my mistake)
>
>   image = db.pictures.image.store(request.vars.image.file)
>
> but this is correct again because the file object carries a filename
>
>   image = db.pictures.image.store(open(filename,'rb'))
>
> On Dec 25, 1:16 pm, "Arun K.Rajeevan" <the1.a...@gmail.com> wrote:
>
> > I'm going to check trunk, but I'm curious to know the difference b/n
>
> > image = db.pictures.image.store(form.vars.image.file,
> > form.vars.image.filename)
> > and
> > image = db.pictures.image.store(request.vars.image.file)
>
> > first one has two arguments and later has only one.( so, file name is not
> > mandatory?)
>
> > And I think I'm correct in assuming that request.vars will be copied to
> > form.vars ?
>
>

Reply via email to