mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Refactored view class hierarchy, refs #272
See https://github.com/simonw/datasette/issues/272#issuecomment-502393107
This commit is contained in:
parent
aa911122fe
commit
d4df640d18
5 changed files with 11 additions and 11 deletions
|
|
@ -25,7 +25,7 @@ from datasette.utils import (
|
|||
value_as_boolean,
|
||||
)
|
||||
from datasette.filters import Filters
|
||||
from .base import BaseView, DatasetteError, ureg
|
||||
from .base import DataView, DatasetteError, ureg
|
||||
|
||||
LINK_WITH_LABEL = (
|
||||
'<a href="/{database}/{table}/{link_id}">{label}</a> <em>{id}</em>'
|
||||
|
|
@ -33,7 +33,7 @@ LINK_WITH_LABEL = (
|
|||
LINK_WITH_VALUE = '<a href="/{database}/{table}/{link_id}">{id}</a>'
|
||||
|
||||
|
||||
class RowTableShared(BaseView):
|
||||
class RowTableShared(DataView):
|
||||
async def sortable_columns_for_table(self, database, table, use_rowid):
|
||||
db = self.ds.databases[database]
|
||||
table_metadata = self.ds.table_metadata(database, table)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue