On Mar 23, 12:29 pm, Massimo Di Pierro <[email protected]>
wrote:
> Thins constraint
>
> >   db.purchases.quantity.requires=IS_INT_IN_RANGE(0,10)
>
> is enforced in
>
> form=crud.create(db.purchases)
> form=crud.update(db.purchases,record)
> form=SQLFORM(db.purchases)
> form=SQLFORM.factory(...,db.purchases.quantity,...)
>
> It is not enforced in forms built manually, like HTML and FORM helper.

erm... ahem... I can use form.accepts with FORM objects.

> The Example 33 was written more then 3 years ago and needs to be
> revised.
>
> Massimo
>

Reply via email to