datasette-edit-schema 0.8a0__tar.gz → 0.8a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of datasette-edit-schema might be problematic. Click here for more details.
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/PKG-INFO +2 -2
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/__init__.py +2 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema.egg-info/PKG-INFO +2 -2
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema.egg-info/requires.txt +1 -1
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/pyproject.toml +2 -2
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/tests/test_edit_schema.py +1 -1
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/LICENSE +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/README.md +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/static/draggable.1.0.0-beta.11.bundle.js +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/static/draggable.1.0.0-beta.11.bundle.min.js +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/templates/edit_schema_create_table.html +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/templates/edit_schema_database.html +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/templates/edit_schema_index.html +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/templates/edit_schema_table.html +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/utils.py +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema.egg-info/SOURCES.txt +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema.egg-info/dependency_links.txt +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema.egg-info/entry_points.txt +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema.egg-info/top_level.txt +0 -0
- {datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: datasette-edit-schema
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8a1
|
|
4
4
|
Summary: Datasette plugin for modifying table schemas
|
|
5
5
|
Author: Simon Willison
|
|
6
6
|
License: Apache-2.0
|
|
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
13
13
|
Requires-Python: >=3.8
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
|
-
Requires-Dist: datasette>=1.
|
|
16
|
+
Requires-Dist: datasette>=1.0a13
|
|
17
17
|
Requires-Dist: sqlite-utils>=3.35
|
|
18
18
|
Provides-Extra: test
|
|
19
19
|
Requires-Dist: pytest; extra == "test"
|
{datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema/__init__.py
RENAMED
|
@@ -43,6 +43,7 @@ def table_actions(datasette, actor, database, table):
|
|
|
43
43
|
"/-/edit-schema/{}/{}".format(database, quote_plus(table))
|
|
44
44
|
),
|
|
45
45
|
"label": "Edit table schema",
|
|
46
|
+
"description": "Rename the table, add and remove columns...",
|
|
46
47
|
}
|
|
47
48
|
]
|
|
48
49
|
|
|
@@ -106,6 +107,7 @@ def database_actions(datasette, actor, database):
|
|
|
106
107
|
"/-/edit-schema/{}/-/create".format(database)
|
|
107
108
|
),
|
|
108
109
|
"label": "Create a table",
|
|
110
|
+
"description": "Define a new table with specified columns",
|
|
109
111
|
}
|
|
110
112
|
]
|
|
111
113
|
|
{datasette-edit-schema-0.8a0 → datasette-edit-schema-0.8a1}/datasette_edit_schema.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: datasette-edit-schema
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8a1
|
|
4
4
|
Summary: Datasette plugin for modifying table schemas
|
|
5
5
|
Author: Simon Willison
|
|
6
6
|
License: Apache-2.0
|
|
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
13
13
|
Requires-Python: >=3.8
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
License-File: LICENSE
|
|
16
|
-
Requires-Dist: datasette>=1.
|
|
16
|
+
Requires-Dist: datasette>=1.0a13
|
|
17
17
|
Requires-Dist: sqlite-utils>=3.35
|
|
18
18
|
Provides-Extra: test
|
|
19
19
|
Requires-Dist: pytest; extra == "test"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "datasette-edit-schema"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.8a1"
|
|
4
4
|
description = "Datasette plugin for modifying table schemas"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{name = "Simon Willison"}]
|
|
@@ -11,7 +11,7 @@ classifiers=[
|
|
|
11
11
|
]
|
|
12
12
|
requires-python = ">=3.8"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"datasette>=1.
|
|
14
|
+
"datasette>=1.0a13",
|
|
15
15
|
"sqlite-utils>=3.35",
|
|
16
16
|
]
|
|
17
17
|
|
|
@@ -62,7 +62,7 @@ async def test_table_actions(permission_plugin, ds, actor_id, should_allow):
|
|
|
62
62
|
cookies = {"ds_actor": ds.sign({"a": {"id": actor_id}}, "actor")}
|
|
63
63
|
response = await ds.client.get("/data/creatures", cookies=cookies)
|
|
64
64
|
assert response.status_code == 200
|
|
65
|
-
fragment = '<
|
|
65
|
+
fragment = '<a href="/-/edit-schema/data/creatures">Edit table schema'
|
|
66
66
|
if should_allow:
|
|
67
67
|
# Should have table action
|
|
68
68
|
assert fragment in response.text
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|