[web2py] Re: Add Fields to tables using loops

2014-10-04 Thread Niphlod
fields = [] for a in range(10): fields.append(Field(...)) db.define_table(*fields) but before diving in, what on earth requires such a model ? On Saturday, October 4, 2014 1:26:49 AM UTC+2, Nurendra Choudhary wrote: > > Hi, > Firstly, thanks for such a great framework. > > I wanted to know h

[web2py] Re: Add Fields to tables using loops

2014-10-06 Thread Nurendra Choudhary
A calendar with flag for each user -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Grou

[web2py] Re: Add Fields to tables using loops

2014-10-07 Thread Niphlod
I'd urge you to consider a table with 2 fields, "date" and "user" instead. On Sunday, October 5, 2014 1:11:22 AM UTC+2, Nurendra Choudhary wrote: > > A calendar with flag for each user > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2

[web2py] Re: Add Fields to tables using loops

2014-10-07 Thread Leonel Câmara
I urge you to follow Niphlod's advice. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google