| 9 | | Add module to db.module: |
| 10 | | * http://127.0.0.1:8000/sahana/appadmin/select/db?query=db.s3_module.id%3E0 |
| | 9 | Add module to db.s3_module: |
| | 10 | * {{{/models/__db.py}}} |
| | 11 | {{{ |
| | 12 | # Populate table with Default modules |
| | 13 | if not len(db().select(db[table].ALL)): |
| | 14 | db[table].insert( |
| | 15 | name="veh", |
| | 16 | name_nice="Vehicle Management System", |
| | 17 | priority=16, |
| | 18 | description="Allows the management of vehicles", |
| | 19 | enabled='True' |
| | 20 | ) |
| | 21 | }}} |
| | 22 | * Now stop the Web2Py instance. |
| | 23 | * Delete the database: {{{/databases/*_s3_module.table}}} |
| | 24 | * Restart the Web2Py instance. |