Groups
Sign in
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
Add Fields to tables using loops
50 views
Field
crud
dal
table
Skip to first unread message
Nurendra Choudhary
unread,
Oct 3, 2014, 7:26:49 PM
10/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
Hi,
Firstly, thanks for such a great framework.
I wanted to know how to add fields to tables using loops.
I require a table with all dates of a year as Fields.
Please help me...........
Niphlod
unread,
Oct 4, 2014, 2:32:45 PM
10/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
fields = []
for a in range(10):
fields.append(Field(...))
db.define_table(*fields)
but before diving in, what on earth requires such a model ?
Nurendra Choudhary
unread,
Oct 4, 2014, 7:11:22 PM
10/4/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
A calendar with flag for each user
Niphlod
unread,
Oct 7, 2014, 6:34:41 AM
10/7/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
I'd urge you to consider a table with 2 fields, "date" and "user" instead.
Leonel Câmara
unread,
Oct 7, 2014, 6:49:39 AM
10/7/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
I urge you to follow Niphlod's advice.
Reply all
Reply to author
Forward
0 new messages