def list_instance_use_business_detail(request): params = {} try: cur_page = int(request.GET.get('cur_page', '1')) mysql_business_id = int(request.GET.get('mysql_business_id', '0')) except ValueError: cur_page = 1 mysql_business_id = 0 params['mysql_business_id'] = mysql_business_id # 创建分页数据 pagination = Pagination.create_pagination( from_name='dbmp.models.dbmp_mysql_instance', model_name='DbmpMysqlInstance', cur_page=cur_page, start_page_omit_symbol='...', end_page_omit_symbol='...', one_page_data_size=10, show_page_item_len=9) # 获得MySQL实例列表 params['pagination'] = pagination return render( request, 'dbmp_mysql_instance/list_instance_use_business_detail.html', params)
def index(request): try: cur_page = int(request.GET.get('cur_page', '1')) except ValueError: cur_page = 1 # 创建分页数据 pagination = Pagination.create_pagination(from_name='mysite.models', model_name='Employee', cur_page=cur_page, start_page_omit_symbol='...', end_page_omit_symbol='...', one_page_data_size=10, show_page_item_len=9) return render(request, 'index.html', {'pagination': pagination})
def index(request): params = {} try: cur_page = int(request.GET.get('cur_page', '1')) except ValueError: cur_page = 1 # 创建分页数据 pagination = Pagination.create_pagination( from_name='dbmp.models.dbmp_mysql_business', model_name='DbmpMysqlBusiness', cur_page=cur_page, start_page_omit_symbol = '...', end_page_omit_symbol = '...', one_page_data_size=10, show_page_item_len=9) # 获得MySQL实例列表 params['pagination'] = pagination return render(request, 'dbmp_mysql_business/index.html', params)
def index(request): params = {} try: cur_page = int(request.GET.get('cur_page', '1')) except ValueError: cur_page = 1 # 创建分页数据 pagination = Pagination.create_pagination( from_name='dbmp.models.dbmp_mysql_business', model_name='DbmpMysqlBusiness', cur_page=cur_page, start_page_omit_symbol='...', end_page_omit_symbol='...', one_page_data_size=10, show_page_item_len=9) # 获得MySQL实例列表 params['pagination'] = pagination return render(request, 'dbmp_mysql_business/index.html', params)
def index(request): params = {} try: cur_page = int(request.GET.get('cur_page', '1')) except ValueError: cur_page = 1 # 创建分页数据 pagination = Pagination.create_pagination( from_name='dbmp.models.dbmp_inception_record', model_name='DbmpInceptionRecord', cur_page=cur_page, start_page_omit_symbol = '...', end_page_omit_symbol = '...', one_page_data_size = 10, show_page_item_len = 9, order_by = ['"-create_time"']) # 获得MySQL实例列表 params['pagination'] = pagination return render(request, 'dbmp_inception_record/index.html', params)
def index(request): params = {} try: cur_page = int(request.GET.get('cur_page', '1')) except ValueError: cur_page = 1 # 创建分页数据 pagination = Pagination.create_pagination( from_name='dbmp.models.dbmp_inception_record', model_name='DbmpInceptionRecord', cur_page=cur_page, start_page_omit_symbol='...', end_page_omit_symbol='...', one_page_data_size=10, show_page_item_len=9, order_by=['"-create_time"']) # 获得MySQL实例列表 params['pagination'] = pagination return render(request, 'dbmp_inception_record/index.html', params)
def iframe_os_list(request): """操作系统列表iframe, 主要是为了提供选择""" params = {} try: cur_page = int(request.GET.get('cur_page', '1')) except ValueError: logger.info(traceback.format_exc()) cur_page = 1 # 创建分页数据 pagination = Pagination.create_pagination(from_name='dbmp.models.cmdb_os', model_name='CmdbOs', cur_page=cur_page, start_page_omit_symbol='...', end_page_omit_symbol='...', one_page_data_size=10, show_page_item_len=9) # 获得MySQL实例列表 params['pagination'] = pagination return render(request, 'dbmp_mysql_instance/iframe_os_list.html', params)