Move scope_definitions dict to jupyterhub/scopes.py

This commit is contained in:
IvanaH8
2021-05-21 16:58:45 +02:00
parent e61cacf5e8
commit 4a1459195e
4 changed files with 85 additions and 100 deletions

View File

@@ -2,14 +2,15 @@ import os
from collections import defaultdict
from pytablewriter import MarkdownTableWriter
from scopedict import get_scope_dict
from jupyterhub.scopes import scope_definitions
HERE = os.path.abspath(os.path.dirname(__file__))
class ScopeTableGenerator:
def __init__(self):
self.scopes = get_scope_dict()
self.scopes = scope_definitions
@classmethod
def create_writer(cls, table_name, headers, values):