will fix it

On Apr 6, 5:10 am, DenesL <[email protected]> wrote:
> It is a bug, e.g. sqlhtml.py uses
>
> if default ...
>
> to check for the existence of a field default, and that does not work
> for this case.
> Thinking cap on...
>
> On Apr 6, 4:17 am, Mike Veltman <[email protected]> wrote:
>
>
>
>
>
>
>
> > Database field is:
>
> >     Field('lunid', type='integer',
> >           default=0,
> >           label=T('Lun ID')),
>
> > Database rule is
>
> > db.viostorage.lunid.requires = IS_IN_SET([0,1])
>
> > Problem:
>
> > In stead of giving me lun 0 as default option it selects nothing :-)
>
> > Make default is 1 and it works fine.
>
> > With regards,
> > Mike Veltman
>
> > Trainer and Senior Consultant, Linux and AIX
> > Phone   : +65 96212448
> > Phone NL  : +31 878702983
> > DID             : +65 6464 0432
> > Fax             : +65 6464 0349
> > Email   : [email protected]
> > Skype   : m.veltman
> > Profile         :www.linkedin.com/in/mikeveltman
>
> > =============================================================
> > Information in this message is confidential. It is intended solely for the
> > person or the entity to whom it is addressed. If you are not the intended
> > recipient, you are not to disseminate,distribute or copy this
> > communication. Please notify the sender and delete the message and any
> > other record of it from your system immediately.
> > =============================================================

Reply via email to