Re: [web2py] defining constraints in model.

2011-03-02 Thread Richard Vézina
Not much difference except space in your model.py file... With the seconde case you can override constrain in the controller when needed. Richard On Wed, Mar 2, 2011 at 12:09 PM, goutham wrote: > whats the diff between > > ### case 1 # > db.define_table('branch', >    Field('name','s

[web2py] defining constraints in model.

2011-03-02 Thread goutham
whats the diff between ### case 1 # db.define_table('branch', Field('name','string', unique = True, notnull = True), Field('content','list:string')) ## case 2 ### db.define_table('branch', Field('name','string'), Field('content','list:string')) db.branch.name