Re: [web2py] Re: default usage

2011-05-15 Thread Stifan Kristi
a, i got it, thank you so much for your detail explaination and example, villas. On Sun, May 15, 2011 at 5:27 PM, villas wrote: > It is simply how that record id will be displayed when used in a > foreign key. > > e.g. > > table colors: > id: 1, name: red, > id: 2, name: yellow, > > table

[web2py] Re: default usage

2011-05-15 Thread villas
It is simply how that record id will be displayed when used in a foreign key. e.g. table colors: id: 1, name: red, id: 2, name: yellow, table cars: id: 1, descr: sport, color_id: 1 When you create a form for 'cars', how would you like the color_id field to appear? a) a drop-down

[web2py] Re: default usage

2011-05-14 Thread pbreit
I still don't understand Record Representation. Is there a plain english description or, better, examples of what it actually does?

Re: [web2py] Re: default usage

2011-05-14 Thread Stifan Kristi
i'm understand right now, thank you so much for your detail explaination. On Sun, May 15, 2011 at 5:02 AM, Anthony wrote: > On Saturday, May 14, 2011 5:37:39 PM UTC-4, 黄祥 wrote: >> >> hi, >> >> is there anyone can explain about the usage of default? >> >> e.g. on http://web2py.com/book/default/c

[web2py] Re: default usage

2011-05-14 Thread Anthony
On Saturday, May 14, 2011 5:37:39 PM UTC-4, 黄祥 wrote: > > hi, > > is there anyone can explain about the usage of default? > > e.g. on http://web2py.com/book/default/chapter/03#Adding-CRUD > db.comment.image_id.default = image.id You can read about it here: http://web2py.com/book/default/cha