[web2py] 2.0.6 bug? required=True not enforced

2012-09-05 Thread mjm
I have defined a simple table: db.define_table('hoortoestel', # algemeen Field('merk', type='string', required=True, ), Field('type', type='string', required=True, ), ... If I then try to enter a new record in appadmin and do not enter anything for the fields, the record is still accepted

Re: [web2py] 2.0.6 bug? required=True not enforced

2012-09-05 Thread Marin Pranjić
I would expect that both constraints are accepted (empty string is not Null). Is the behavior different from older versions? On Wed, Sep 5, 2012 at 7:39 PM, mjm mjm...@webtothemax.com wrote: I have defined a simple table: db.define_table('hoortoestel', # algemeen Field('merk',

Re: [web2py] 2.0.6 bug? required=True not enforced

2012-09-05 Thread Massimo Di Pierro
No. This was always like this. On Wednesday, 5 September 2012 15:18:05 UTC-5, Marin Pranjić wrote: I would expect that both constraints are accepted (empty string is not Null). Is the behavior different from older versions? On Wed, Sep 5, 2012 at 7:39 PM, mjm mjm...@webtothemax.com