This commit is contained in:
parent
574ab36da4
commit
45a787aa39
|
@ -755,6 +755,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
|
||||||
return snapshots and 'update' or 'new_device'
|
return snapshots and 'update' or 'new_device'
|
||||||
|
|
||||||
def register_passport_dlt(self):
|
def register_passport_dlt(self):
|
||||||
|
import pdb; pdb.set_trace()
|
||||||
if 'trublo' not in app.blueprints.keys() or not self.hid:
|
if 'trublo' not in app.blueprints.keys() or not self.hid:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -117,11 +117,13 @@ class SnapshotMixin:
|
||||||
snapshot.severity = Severity.Warning
|
snapshot.severity = Severity.Warning
|
||||||
|
|
||||||
self.is_server_erase(snapshot)
|
self.is_server_erase(snapshot)
|
||||||
snapshot.device.register_dlt()
|
|
||||||
|
|
||||||
snapshot.device.set_hid()
|
snapshot.device.set_hid()
|
||||||
snapshot.device.binding.device.set_hid()
|
snapshot.device.binding.device.set_hid()
|
||||||
|
|
||||||
|
snapshot.device.register_dlt()
|
||||||
|
snapshot.register_passport_dlt()
|
||||||
|
|
||||||
return snapshot
|
return snapshot
|
||||||
|
|
||||||
def is_server_erase(self, snapshot):
|
def is_server_erase(self, snapshot):
|
||||||
|
|
|
@ -887,6 +887,7 @@ class Device(Thing):
|
||||||
return types.get(self.type, '')
|
return types.get(self.type, '')
|
||||||
|
|
||||||
def register_dlt(self):
|
def register_dlt(self):
|
||||||
|
import pdb; pdb.set_trace()
|
||||||
if 'trublo' not in app.blueprints.keys() or not self.hid:
|
if 'trublo' not in app.blueprints.keys() or not self.hid:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Reference in New Issue