source:
tmcsimulator/branches/Highways/models/db.py.bak
@
543
| Revision 543, 365 bytes checked in by jdalbey, 6 years ago (diff) |
|---|
| Rev | Line | |
|---|---|---|
| 1 | b = DAL("sqlite://storage.sqlite") | |
| 2 | ||
| 3 | db.define_table('highways', | |
| 4 | Field('lognum', unique=True), | |
| 5 | Field('route'), | |
| 6 | Field('direction'), | |
| 7 | Field('startdate'), | |
| 8 | format = '%(route)s') | |
| 9 | ||
| 10 | db.highways.lognum.requires = IS_NOT_IN_DB(db, db.highways.lognum) | |
| 11 | db.highways.lognum.requires = IS_NOT_EMPTY() |
Note: See TracBrowser
for help on using the repository browser.
