I have been asked to extend a website with a timetable module. I set
up a mock timetable in web2py and wondered whether anyone has already
build something similar, and would be willing to share his code with
me.

To give you an idea of what I am looking for these are the tables:

db.define_table('day',
    Field('name',length=10,default='',notnull=True,unique=True),
    migrate=False)

db.define_table('program',
    Field('name',length=48,default='',notnull=True,unique=True),
    migrate=False)

db.define_table('level',
    Field('name',length=36,default='',notnull=True,unique=True),
    migrate=False)

db.define_table('location',
    Field('name',length=36,default='',notnull=True,unique=True),
    migrate=False)

db.define_table('timetable',
    Field('day_id',db.day),
    Field('time',type='time'),
    Field('duration')
    Field('program_id',db.program),
    Field('level_id',db.level),
    Field('location_id',db.location),
    migrate=False)


When the visitor opens the page, today's programs should be shown.
Then the visitor should have the option of viewing entire timetable or
adjusting it to his needs by selecting days, time slots, programs, or
levels.

The entire timetable or a custom timetable should also be downloadable
as a pdf.


Kind regards,

Annet

Reply via email to