db.define_table('table1',
Field('table1_id','id'),
Field('file','upload',uploadfield='file_blob'),
Field('file_blob','blob'))
Richard
On Fri, Nov 5, 2010 at 7:45 PM, mdipierro <[email protected]> wrote:
> Can I see the model?
>
> On Nov 5, 11:40 am, Richard Vézina <[email protected]>
> wrote:
> > The origin of this need is the following :
> >
> > In web2py 1.83.2 we was possible to omit the upload of file for the
> field,
> > but with the exact same model and controller in web2py 1.88.2 it raise a
> > ticket in case upload is omited.
> >
> > Richard
> >
> > On Fri, Nov 5, 2010 at 12:11 PM, Richard Vézina <
> [email protected]
> >
> > > wrote:
> > > Hello,
> >
> > > How I may hide blob field from a form?
> >
> > > I did :
> >
> > > db[request.args(0)].blobfield.readable=\
> > > db[request.args(0)].blobfield.writeable=\
> > > db[request.args(0)].blobfield_blob.readable=\
> > > db[request.args(0)].blobfield_blob.writeable=False
> >
> > > In my controller without succes.
> >
> > > I use crud.create(db[request.args(0)])
> >
> > > Thanks
> >
> > > Richard
> >
> >
>