5.12. models — models for openPLM
5.14. plmapp_tags — Template tags and filters used by openPLM
Enter search terms or a module, class or function name.
This module provides NavigationGraph which is used to generate the navigation’s graph in navigate().
limit of objects displayed per link category
Get informations to display in the id-cards of all Document which id is in doc_ids
Parameters: | doc_ids – list of Document ids to treat |
---|---|
Returns: | a Dictionnary which contains the following informations
|
Bases: pygraphviz.agraph.AGraph
A frozen AGraph
Parameters: | data – representation of the graph in dot format |
---|
Bases: object
This object can be used to generate a naviation’s graph from an object.
By default, the graph contains one node: the object given as argument. You can change this behaviour with :meth`set_options`
Usage:
graph = NavigationGraph(a_part_controller)
graph.set_options({'child' : True, "parents" : True })
graph.create_edges()
nodes, edges = graph.render()
Parameters: |
|
---|
Sets which kind of edges should be inserted.
Options is a dictionary(option_name -> boolean)
The option only_search_results enables results filtering.
If the root is a PartController, valid options are:
Name Description child If True, adds recursively all children of the root parents If True, adds recursively all parents of the root doc If True, adds documents attached to the parts owner If True, adds the owner of the root signer If True, adds the signers of the root notified If True, adds the notified of the root
If the root is a DocumentController, valid options are:
Name Description parts If True, adds parts attached to the root owner If True, adds the owner of the root signer If True, adds the signers of the root notified If True, adds the notified of the root
If the root is a UserController, valid options are:
Name Description owned If True, adds all plmobjects owned by the root to_sign If True, adds all plmobjects signed by the root request_notification_from If True, adds all plmobjects which notifies the root