def navigate(request, obj_type, obj_ref, obj_revi): """ Manage html page which displays a graphical picture the different links between :class:`~django.contrib.auth.models.User` and :class:`.models.PLMObject`. This function uses Graphviz (http://graphviz.org/). Some filters let user defines which type of links he/she wants to display. It computes a context dictionary based on .. include:: views_params.txt """ ctx = get_navigate_data(request, obj_type, obj_ref, obj_revi) return r2r('Navigate.htm', ctx, request)
def ajax_navigate(request, obj_type, obj_ref, obj_revi): context = get_navigate_data(request, obj_type, obj_ref, obj_revi) data = { "img" : context["picture_path"], "width" : context["img_width"], "height" : context["img_height"], "divs" : context["map_areas"], "left" : context["x_img_position"], "top" : context["y_img_position"], "form" : context["filter_object_form"].as_ul(), "center_x" : context["center_x"], "center_y" : context["center_y"], } return data