Hello, I have a form that in this moment create one record in the database. 
This records represent an event:

db.define_table('evento',
                Field('titolo', requires=[IS_NOT_EMPTY()]),
                Field('inizio', type='datetime'),
                Field('fine', type='datetime'),
                Field.Virtual('giorno_inizio', lambda 
row:calendar.day_name[row.evento.inizio.weekday()]),
                Field('risorsa', 'reference risorsa'),
                Field('docente', 'reference auth_user'),
                Field('materia', 'reference materia'),
                Field('studenti', 'list:reference auth_user'),
                Field('colore', default = '#8080ff'),
                
auth.signature,singular="Evento",plural="Eventi",migrate='evento.table',
                format='%(titolo)s')

This event has start time and end time. 
For accepting the form I use  "if form.process().accepted:".

All is working perfectly, But if I want to create a recurring event for 
example adding a dropdown box that user can select for how many week I have 
to repeat the event. (for example the same event every Tuesday from 10:00 
to 11:00 for 5 weeks), how ca I do? How to insert multiple record in the 
database using only one form?

-- 
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 Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to