def get(self, *args, **kwargs): con_id = self.get_argument('con_id') con_data = NodeInfo.get_con_usage_modify(con_id) con_data_handled = DataManage.manage_con_usage_info(con_data) self.render("node/con_modify.html", name=template_variables, single_con_usage_data=con_data_handled)
def get(self, *args, **kwargs): con_id = self.get_argument('con_id', 'none') if con_id == 'none': con_data = NodeInfo.con_usage_info() else: con_data = NodeInfo.get_con_usage_modify(con_id) con_data_handled = DataManage.manage_con_usage_info(con_data) self.render("node/con_list.html", name=template_variables, con_data=con_data_handled)