plain.oauth 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl
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.
- plain/oauth/models.py +2 -1
- plain/oauth/{admin.py → staff.py} +8 -8
- {plain_oauth-0.1.0.dist-info → plain_oauth-0.2.0.dist-info}/METADATA +2 -5
- {plain_oauth-0.1.0.dist-info → plain_oauth-0.2.0.dist-info}/RECORD +6 -6
- {plain_oauth-0.1.0.dist-info → plain_oauth-0.2.0.dist-info}/LICENSE +0 -0
- {plain_oauth-0.1.0.dist-info → plain_oauth-0.2.0.dist-info}/WHEEL +0 -0
plain/oauth/models.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
from typing import TYPE_CHECKING
|
2
2
|
|
3
|
-
from plain import models
|
3
|
+
from plain import models
|
4
4
|
from plain.auth import get_user_model
|
5
|
+
from plain.models import transaction
|
5
6
|
from plain.models.db import IntegrityError, OperationalError, ProgrammingError
|
6
7
|
from plain.preflight import Error
|
7
8
|
from plain.runtime import settings
|
@@ -1,9 +1,9 @@
|
|
1
1
|
from plain.models import Count
|
2
|
-
from plain.staff.
|
3
|
-
from plain.staff.
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
from plain.staff.cards import ChartCard
|
3
|
+
from plain.staff.views import (
|
4
|
+
StaffModelDetailView,
|
5
|
+
StaffModelListView,
|
6
|
+
StaffModelViewset,
|
7
7
|
register_viewset,
|
8
8
|
)
|
9
9
|
|
@@ -34,14 +34,14 @@ class ProvidersChartCard(ChartCard):
|
|
34
34
|
|
35
35
|
|
36
36
|
@register_viewset
|
37
|
-
class OAuthConnectionViewset(
|
38
|
-
class ListView(
|
37
|
+
class OAuthConnectionViewset(StaffModelViewset):
|
38
|
+
class ListView(StaffModelListView):
|
39
39
|
nav_section = "OAuth"
|
40
40
|
model = OAuthConnection
|
41
41
|
title = "Connections"
|
42
42
|
fields = ["id", "user", "provider_key", "provider_user_id"]
|
43
43
|
cards = [ProvidersChartCard]
|
44
44
|
|
45
|
-
class DetailView(
|
45
|
+
class DetailView(StaffModelDetailView):
|
46
46
|
model = OAuthConnection
|
47
47
|
title = "OAuth connection"
|
@@ -1,17 +1,14 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: plain.oauth
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: OAuth login and API access for Plain.
|
5
5
|
Home-page: https://plainframework.com
|
6
6
|
License: BSD-3-Clause
|
7
7
|
Author: Dave Gaeddert
|
8
8
|
Author-email: dave.gaeddert@dropseed.dev
|
9
|
-
Requires-Python: >=3.
|
9
|
+
Requires-Python: >=3.11,<4.0
|
10
10
|
Classifier: License :: OSI Approved :: BSD License
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
15
12
|
Classifier: Programming Language :: Python :: 3.11
|
16
13
|
Classifier: Programming Language :: Python :: 3.12
|
17
14
|
Project-URL: Documentation, https://plainframework.com/docs/
|
@@ -1,6 +1,5 @@
|
|
1
1
|
plain/oauth/README.md,sha256=zFe02rc8mVzEVrf27zJuKv9WDjMIWL6HZ41hOa9Ur8k,11227
|
2
2
|
plain/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
plain/oauth/admin.py,sha256=7Gs5j5yIoHc_W4wMnKuexN9908Isnq8M5BeIcxrmtDM,1300
|
4
3
|
plain/oauth/config.py,sha256=jk5l59taT_3Kh7EFrJuuubtrCHLfNBVkD2sWQ_M5_JQ,160
|
5
4
|
plain/oauth/exceptions.py,sha256=TMGtIGkK3_J4rsEy1oPCmia7BnRSK8N8RMZm4_pNelA,189
|
6
5
|
plain/oauth/migrations/0001_initial.py,sha256=N7-sunlafVXszwLd4Z3f-nXHZdBlWTWP2RMBve6jXCc,1956
|
@@ -8,12 +7,13 @@ plain/oauth/migrations/0002_alter_oauthconnection_options_and_more.py,sha256=3Mb
|
|
8
7
|
plain/oauth/migrations/0003_alter_oauthconnection_access_token_and_more.py,sha256=XSd_b8fbFyJQ9Hl117KH9g0-jOzXgekARBAtQqE9G14,625
|
9
8
|
plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha256=ewMJTajyqbyYsxmJqlGtgc3fZPlqZWhX-Fnect1xgnQ,648
|
10
9
|
plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
-
plain/oauth/models.py,sha256=
|
10
|
+
plain/oauth/models.py,sha256=7qyBCON0L0CEBC04XX2Nh4VluSyavma-cPp9Az5iaFM,6717
|
12
11
|
plain/oauth/providers.py,sha256=-8Ks4iRfRZOybUMa7Fd9PMkebT96stlqarfdcjWpDBw,6840
|
12
|
+
plain/oauth/staff.py,sha256=NtmyFURkKMH6hRp7sjl8FUWYOGSA7M0tLKRyXUciPj4,1288
|
13
13
|
plain/oauth/templates/oauth/error.html,sha256=xkkWw57sZ3fz4dDfH30SVtq3okJNnJmrSRPfGxrxjh8,108
|
14
14
|
plain/oauth/urls.py,sha256=NyP_yDKayJYrCdw4oNVHUmtjbLNfzdnpdWc-eOsMlDM,676
|
15
15
|
plain/oauth/views.py,sha256=9NQCNycxO3BMIvSalAWt1q67qq2Br4wsf36Zr1m98z4,3069
|
16
|
-
plain_oauth-0.
|
17
|
-
plain_oauth-0.
|
18
|
-
plain_oauth-0.
|
19
|
-
plain_oauth-0.
|
16
|
+
plain_oauth-0.2.0.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
|
17
|
+
plain_oauth-0.2.0.dist-info/METADATA,sha256=Xq3K-dgXYfRT-TLUDy0ptB2WbzMla3gNkbIDY9ZuA0A,11948
|
18
|
+
plain_oauth-0.2.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
19
|
+
plain_oauth-0.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|