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
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
2 matches
Mail list logo