plain.oauth 0.1.1__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.
@@ -1,9 +1,9 @@
1
1
  from plain.models import Count
2
- from plain.staff.admin.cards import ChartCard
3
- from plain.staff.admin.views import (
4
- AdminModelDetailView,
5
- AdminModelListView,
6
- AdminModelViewset,
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(AdminModelViewset):
38
- class ListView(AdminModelListView):
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(AdminModelDetailView):
45
+ class DetailView(StaffModelDetailView):
46
46
  model = OAuthConnection
47
47
  title = "OAuth connection"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain.oauth
3
- Version: 0.1.1
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
@@ -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
@@ -10,10 +9,11 @@ plain/oauth/migrations/0004_alter_oauthconnection_access_token_and_more.py,sha25
10
9
  plain/oauth/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
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.1.1.dist-info/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
17
- plain_oauth-0.1.1.dist-info/METADATA,sha256=fQJ36bEs5nR7wBFwUfopl_7uG_Nl9yYqVawRQlmz1U0,11948
18
- plain_oauth-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
19
- plain_oauth-0.1.1.dist-info/RECORD,,
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,,