fix teal import inm did resource

This commit is contained in:
Cayo Puigdefabregas 2023-05-24 10:25:04 +02:00
parent 4e610f0903
commit 48be3bae64
3 changed files with 8 additions and 18 deletions

View File

@ -1,28 +1,14 @@
import csv
import datetime
import enum
import json import json
import time
import uuid
from collections import OrderedDict
from io import StringIO
from typing import Callable, Iterable, Tuple from typing import Callable, Iterable, Tuple
import boltons
import flask import flask
import flask_weasyprint
import teal.marshmallow
from boltons import urlutils from boltons import urlutils
from flask import current_app as app from flask import request
from flask import g, make_response, request
from flask.json import jsonify from flask.json import jsonify
from teal.cache import cache
from teal.resource import Resource, View
from ereuse_devicehub import auth
from ereuse_devicehub.db import db
from ereuse_devicehub.resources.device.models import Device from ereuse_devicehub.resources.device.models import Device
from ereuse_devicehub.resources.did.models import Dpp from ereuse_devicehub.resources.did.models import Dpp
from ereuse_devicehub.teal.resource import Resource, View
class DidView(View): class DidView(View):
@ -125,7 +111,7 @@ class DidDef(Resource):
cli_commands, cli_commands,
) )
view = DidView.as_view('main', definition=self, auth=app.auth) # view = DidView.as_view('main', definition=self, auth=app.auth)
# if self.AUTH: # if self.AUTH:
# view = app.auth.requires_auth(view) # view = app.auth.requires_auth(view)

View File

@ -51,3 +51,5 @@ Werkzeug>=2.0.3
# ereuse-utils dependency # ereuse-utils dependency
inflection==0.5.1 inflection==0.5.1
-i https://test.pypi.org/simple/ ereuseapitest

View File

@ -4,6 +4,8 @@
# #
# pip-compile # pip-compile
# #
--index-url https://test.pypi.org/simple/
alembic==1.4.2 alembic==1.4.2
# via -r requirements.in # via -r requirements.in
anytree==2.8.0 anytree==2.8.0