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 time
import uuid
from collections import OrderedDict
from io import StringIO
from typing import Callable, Iterable, Tuple
import boltons
import flask
import flask_weasyprint
import teal.marshmallow
from boltons import urlutils
from flask import current_app as app
from flask import g, make_response, request
from flask import request
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.did.models import Dpp
from ereuse_devicehub.teal.resource import Resource, View
class DidView(View):
@ -125,7 +111,7 @@ class DidDef(Resource):
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:
# view = app.auth.requires_auth(view)

View File

@ -50,4 +50,6 @@ webargs==5.5.3
Werkzeug>=2.0.3
# 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
#
--index-url https://test.pypi.org/simple/
alembic==1.4.2
# via -r requirements.in
anytree==2.8.0