|
@@ -103,9 +103,9 @@ class info_path(Load):
|
|
|
self.data['common']['search_hardware_type-select-'] = self.service('common').list('hardware_type')
|
|
|
|
|
|
gateway = {}
|
|
|
- for key, value in enumerate(self.data['common']['search_gateway_id-select---farm_id']):
|
|
|
- gateway[key] = value
|
|
|
- print gateway
|
|
|
+ for value in self.data['common']['search_gateway_id-select---farm_id']:
|
|
|
+ gateway[value['id']] = value
|
|
|
+
|
|
|
"""
|
|
|
if self.data['common']['search_hardware_type-select-']:
|
|
|
del self.data['common']['search_hardware_type-select-'][0]
|