def get_details_db(options): #_logger.debug("*** get_details_db ***") connect = Connection(options) model_of_view = [] profundidad = int(options.view_levels) for i in range(profundidad): _logger.debug("iteracion numero {0}\n".format(i)) model_of_view = generate_model(model_of_view, options, connect) _logger.debug("\n** modelo Generado **\n") for i in model_of_view: _logger.debug(i) # include if (options.view_include): model_of_view = include_entity_of_model_general( options, model_of_view, connect) _logger.debug("\n*** retorno despues del include ***\n") for i in model_of_view: _logger.debug(i) # exclude if (options.view_exclude): model_of_view = exclude_entity_of_model_general(options, model_of_view) _logger.debug("\n*** retorno despues del exclude ***\n") for i in model_of_view: _logger.debug(i) file = init_graph() pintar = Model(model_of_view, file, options) pintar.get_plantuml_relation_tags() pintar.get_plantuml_entity_tags() fin_graph(file)
def get_details_db(options): connect = Connection(options) profundidad = int(options.model_levels) a = {} for i in range(profundidad): print "{0} {1}\n".format("Iteracion numero :", i) a = generate_model(options.model_openERP, a, options, connect) _logger.debug("\n*** retorno generate_model ***") for i in a: _logger.debug(i) # include if (options.model_include): a = include_entity_of_model_general(options, a, connect) _logger.debug("\n*** retorno despues del include ***") for i in a: _logger.debug(i) # exclude if (options.model_exclude): a = exclude_entity_of_model_general(options, a) _logger.debug("\n*** retorno despues del exclude ***") for i in a: _logger.debug(i) c = connect.get_connection() file = init_graph() pintar = Model(a, file, options, c) pintar.get_plantuml_relation_tags() pintar.get_plantuml_entity_tags() fin_graph(file) _logger.debug("\n*** Proceso Culminado ***")