source: tmcsimulator/branches/Highways/models/db.py.bak @ 543

Revision 543, 365 bytes checked in by jdalbey, 6 years ago (diff)

Add branch for web2py example application: Highways

Line 
1b = DAL("sqlite://storage.sqlite")
2
3db.define_table('highways',
4                Field('lognum', unique=True),
5                Field('route'),
6                Field('direction'),
7                Field('startdate'),
8                format = '%(route)s')
9
10db.highways.lognum.requires = IS_NOT_IN_DB(db, db.highways.lognum)
11db.highways.lognum.requires = IS_NOT_EMPTY()
Note: See TracBrowser for help on using the repository browser.