|
@@ -203,12 +203,15 @@ class info_update_path(Load):
|
|
self.commonUpdate('device_info')
|
|
self.commonUpdate('device_info')
|
|
@Web.auth
|
|
@Web.auth
|
|
def delete(self):
|
|
def delete(self):
|
|
|
|
+ self.commonDelete('device_info')
|
|
|
|
+ """
|
|
self.commonOne('device_info')
|
|
self.commonOne('device_info')
|
|
if self.input('state') == 'True' or (self.data['info'] and 'hardware_type' in self.data['info'] and self.data['info']['hardware_type'] == 7):
|
|
if self.input('state') == 'True' or (self.data['info'] and 'hardware_type' in self.data['info'] and self.data['info']['hardware_type'] == 7):
|
|
self.commonDelete('device_info')
|
|
self.commonDelete('device_info')
|
|
else:
|
|
else:
|
|
#除摄像机之外,其余设备不允许删除
|
|
#除摄像机之外,其余设备不允许删除
|
|
self.out('no')
|
|
self.out('no')
|
|
|
|
+ """
|
|
|
|
|
|
class camera_path(Load):
|
|
class camera_path(Load):
|
|
@Web.auth
|
|
@Web.auth
|