Modify

Opened 6 years ago

Last modified 5 years ago

#3924 new enhancement

Some changes to make this beautiful tool more versatile

Reported by: ergo@… Owned by: ftiede
Priority: normal Component: TracTicketDepgraphPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Hello, I reworked the code little bit to have better presentation for printouts (see attached screen-copies) + added 3rd parameter to select the rankdir (LR, TB, BT, RL), if needed:

[[DepGraph(,-1,LR)]] - standard left-right == [[DepGraph]]
[[DepGraph(,-1,TB)]] - whole graph like [[DepGraph]], but Top-Bottom
[[DepGraph(,-1,BT)]] - same, but Bottom-Top, etc.
similar for ticket range:
[[DepGraph(13,2,BT)]]

Modified code attached (sorry, no time to polish, but it works),
rgds, Paul

Attachments (3)

depgraph2.png (37.8 KB) - added by ergo@… 6 years ago.
Example new shapes with Top-Bottom rankdir
depgraph3.png (24.6 KB) - added by ergo@… 6 years ago.
New shapes, standard rankdir LR with corrected and linked shape for closed ticket
depgraph.py (7.2 KB) - added by ergo@… 6 years ago.
Modified source

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by ergo@…

Example new shapes with Top-Bottom rankdir

Changed 6 years ago by ergo@…

New shapes, standard rankdir LR with corrected and linked shape for closed ticket

Changed 6 years ago by ergo@…

Modified source

comment:1 Changed 5 years ago by anonymous

I can not get it running, because the util-module is missing:

Trac[__init__] DEBUG: Loading TracTicketDepgraph from TracTicketDepgraph-0.11-py2.4.egg
Trac[__init__] ERROR: Skipping "TracTicketDepgraph = depgraph": (can't import "No module named util")

Any ideas where this util-module can be found or in which package this is included?

comment:2 Changed 5 years ago by anonymous

It's a shame too, it looks really nice

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.