Creates the database table from View.schema, optionally overwriting the old table.
(self, overwrite=False)
| 1324 | return self.db[self._table] |
| 1325 | |
| 1326 | def setup(self, overwrite=False): |
| 1327 | """ Creates the database table from View.schema, optionally overwriting the old table. |
| 1328 | """ |
| 1329 | if overwrite: |
| 1330 | self.db.drop(self._table) |
| 1331 | if not self._table in self.db: |
| 1332 | self.db.create(self._table, self.schema) |
| 1333 | |
| 1334 | def render(self, *path, **query): |
| 1335 | """ This method should be overwritten to return formatted table output (XML, HTML, RSS, ...) |