aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/tables.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-06-05 15:14:52 +0200
committerGravatar Gareth Coles <[email protected]>2018-06-05 14:14:52 +0100
commitb8c2be0b446be35c273ccaf5ff10fd980be0edcc (patch)
treec1a068d3e43420e26626c2fd53e1e8c06da6c24c /pysite/tables.py
parent[Jams] Fix signup message (diff)
documentation metadata API (#57)
* Add documentation metadata "schema". * Add seed data for `pydoc_links` table. * Add tests for the `doc` API. * Allow specifying multiple parameters. * Move up line in generator. * make each docs test a function for greater test report visibility * fix a typo * Use fixtures instead of `pytest-ordering`. * Move `doc` API to `/bot/doc`. * Use new migration system.
Diffstat (limited to 'pysite/tables.py')
-rw-r--r--pysite/tables.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pysite/tables.py b/pysite/tables.py
index b33f04b9..7e43fe87 100644
--- a/pysite/tables.py
+++ b/pysite/tables.py
@@ -222,5 +222,15 @@ TABLES = {
"table",
"version"
])
- )
+ ),
+
+ "pydoc_links": Table( # pydoc_links
+ primary_key="package",
+ keys=sorted([
+ "base_url",
+ "inventory_url",
+ "package"
+ ]),
+ locked=False
+ ),
}