This method should be overwritten to return formatted table output (XML, HTML, RSS, ...) For web apps, the given path should list all parts in the relative URL path, and query is a dictionary of all POST and GET variables sent from the client. For example: http:/
(self, *path, **query)
| 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, ...) |
| 1336 | For web apps, the given path should list all parts in the relative URL path, |
| 1337 | and query is a dictionary of all POST and GET variables sent from the client. |
| 1338 | For example: http://books.com/science/new |
| 1339 | => ["science", "new"] |
| 1340 | => render() data from db.books.filter(ALL, category="science", new=True). |
| 1341 | """ |
| 1342 | pass |
| 1343 | |
| 1344 | # CherryPy-specific. |
| 1345 | def default(self, *path, **query): |