File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def __init__(
95
95
)
96
96
97
97
# Thing description
98
- self .thing_description = ThingDescription (self . spec )
98
+ self .thing_description = ThingDescription ()
99
99
100
100
if app is not None :
101
101
self .init_app (app )
Original file line number Diff line number Diff line change 1
1
from flask import url_for , request
2
- from apispec import APISpec
3
- import weakref
4
2
5
3
from .view import View
6
4
from .event import Event
7
-
8
5
from .json .schemas import schema_to_json
9
6
from .json .paths import rule_to_params , rule_to_path
10
-
11
7
from .find import current_labthing
12
-
13
8
from .utilities import get_docstring , snake_to_camel
14
9
15
- # TODO: Remove reliance on get_apispec() methods
16
-
17
10
18
11
def view_to_thing_action_forms (rules : list , view : View ):
19
12
"""Build a W3C form description for an ActionView
@@ -136,18 +129,13 @@ def view_to_thing_property_forms(rules: list, view: View):
136
129
137
130
138
131
class ThingDescription :
139
- def __init__ (self , apispec : APISpec ):
140
- self ._apispec = weakref .ref (apispec )
132
+ def __init__ (self ):
141
133
self .properties = {}
142
134
self .actions = {}
143
135
self .events = {}
144
136
self ._links = []
145
137
super ().__init__ ()
146
138
147
- @property
148
- def apispec (self ):
149
- return self ._apispec ()
150
-
151
139
@property
152
140
def links (self ):
153
141
td_links = []
You can’t perform that action at this time.
0 commit comments