Skip to content

Commit 09ca006

Browse files
author
Thomas Goodwin
committed
Corrected the typemap setup from the older location to the 1.10 compatible location
1 parent 64f5419 commit 09ca006

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

model/redhawk.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828

2929
from domain import Domain, scan_domains, ResourceNotFound
3030

31-
from ossie.utils import prop_helpers
31+
from ossie.properties import __TYPE_MAP as TYPE_MAP
32+
from ossie.properties import props_from_dict
3233

3334
from tornado.websocket import WebSocketClosedError
3435
from tornado import ioloop
@@ -162,7 +163,7 @@ def _get_prop_changes(current_props, new_properties):
162163
for prop in current_props:
163164
if prop.id in new_properties:
164165
if new_properties[prop.id] != prop.queryValue():
165-
TYPE = prop_helpers.TYPE_MAP.get(prop.type, [type(prop.queryValue())])
166+
TYPE = TYPE_MAP.get(prop.type, [type(prop.queryValue())])
166167
changes[str(prop.id)] = (TYPE[0]) (Redhawk._clean_property(new_properties[prop.id]))
167168
return props_from_dict(changes)
168169

0 commit comments

Comments
 (0)