TRAC experience (1) Miscellaneous
TRAC experience (2) Miscellaneous
TRAC experience (3) Workflow
TRAC experience (4) Report
TRAC experience (5) plug-ins
About TRAC experience (end 6) plug-ins
========================
TRAC experience (5) plug-ins
Lai Yonghao (http://laiyonghao.com)
If ticket is the soul of TRAC, the plug-in (plugins) should be called the flesh and blood of TRAC. Because this is an experience discussion, we will not talk about the principles of TRAC's plug-in mechanism. We will introduce the plug-ins I have used, the functions of these plug-ins, and the problems I have solved.
Before that, however, you still need to know how to find, download, and install the plug-in.
TRAC plug-ins are in the http://trac-hacks.org/website home, so here to find plug-ins on the right! Each project in the project has its own page. Basically, the download, installation, and configuration are clearly written on it. You can download the zip release package and decompress it to a directory. Execute Python setup. py bdist_egg to compile the code into egg. Log on to TRAC with the Administrator account, click "admin" in the upper right corner, and select the "plugins" Link under "general" in the left column on the new page, you can upload and install the compiled Python egg in the upper-right corner of the "Management plug-in" page, and then edit TRAC. configure the INI file.
Next, we will officially start introducing plug-ins, which are categorized by experience and functions.
Experience autocompleteusers
Home page: http://trac-hacks.org/wiki/autocompleteusersplugin. I now use version 0.4.1. It prompts the user name in Ajax style when entering the owner or CC. In this way, you only need to remember the first two letters of the user name. :
There is also an optional plug-in similar to tracautocompleteplugin, see: http://trac-hacks.org/wiki/TracAutoCompletePlugin
Ccselectorplugin
Home page: http://trac-hacks.org/wiki/ccselectorplugin. Although you can edit TRAC. INI adds restrict_owner = true to the [ticket] section to select the owner list. However, it is too difficult for Chinese to remember other users' usernames, because some people use English names, some people use Pinyin names, some people have their surnames in front, some people have their surnames in front, and the last way is to use real names. This plug-in solves this problem ,:
I implemented a hard-written hack on the ccselectorplugin to achieve the owner's choice. This is the perfect solution for TRAC in terms of user selection.CodeLater, we will select the day to open source for everyone to use.
Breadcrumbsnavplugin
Home page: Workshop. After this plug-in is enabled, in the upper-right corner of the page, it is the place where the login and settings links are located. There will be an additional line of links that record several pages you have visited before, just like a bread, find the way home ".
Datefieldplugin
Home page: Workshop ,:
Customfieldadminplugin
Home page: http://trac-hacks.org/wiki/customfieldadminplugin. The Custom Field (custom fields) is very important. Many plug-ins for experience improvement are based on it. If you are interested, check out TRAC'sSource code, You will find that TRAC is dedicated to custom fields in many places. This plug-in provides a Web interface to manage custom fields, such as adding, changing, and deleting fields. You need to edit TRAC directly before. INI (this is a dangerous and error-prone method ).
Feature ticketextplugin
Homepage: Forbidden) use different description templates based on the ticket type; 2) Be able to visually locate the template through the tracadmin page; 3) enable or disable custom fields based on the ticket type. Through this plug-in, we have customized our own ticket description template, which helps users who are new to TRAC and solve their "don't know how to use it" problems.
Tracwysiwygplugin
Home page: http://trac-hacks.org/wiki/tracwysiwygplugin. TRAC is not used by non-ProgramMembers refuse to use the Wiki syntax because it is too difficult for them to learn the Wiki syntax. This plug-in can alleviate the problem to some extent and achieve the "What you see is what you get" effect. Basically, all users have installed this plug-in.
Graphvizplugin
Home page: http://trac-hacks.org/wiki/graphvizplugin. All UNIX fans are familiar with graphviz, right? This plug-in provides an explanation of the graphviz program in the Wiki, allowing you to write a text Wiki and view the graphic effect. Example:
{{{#! Graphviz digraph G {rankdir = "LR" graphvizplugin [url = graphvizplugin] TRAC [url = "http://trac.edgewall.org/" fontcolor = Red] graphvizplugin-> TRAC }}}}
:
Note that the graphviz program needs to be installed on the machine to use this plug-in.
Childticketsplugin
Home page: http://trac-hacks.org/wiki/childticketsplugin. This plug-in is powerful, but in simple terms it is the concept of bringing sub-task orders to TRAC. You can set whether a job order of a certain type can own a sub-job list, or limit the type of its sub-job list, as well as fields inherited from the parent level of the sub-job list. You can directly create a subtask list on a task list page, or view the information of all the current subtask lists (the fields can be set), such:
There is also a subticketsplugin (see: http://trac-hacks.org/wiki/SubticketsPlugin) that provides similar functionality, but I don't like this plug-in because it is too cool to modify the parent task list when adding a sub-task list, customization is also much weaker.
Tracticketvalidatorplugin
Home page: http://trac-hacks.org/wiki/tracticketvalidatorplugin. This is a plug-in contributed by Richard Liao, an employee in Jinshan Zhuhai. It provides a regular expression-based field validity check, which is very nice. There is also a very similar plug-in called ticketvalidatorplugin (see: http://trac-hacks.org/wiki/TicketValidatorPlugin), but I don't like it because it is based on the status of ticket to verify the validity of the field, in addition, only weak required verification is provided.
Xmlrpcplugin
Home: http://trac-hacks.org/wiki/xmlrpcplugin, idea, this plug-in provides a XML-RPC mechanism for TRAC, So client software like tasktraytask can regularly query TRAC through the XML-RPC to get new information and provide users. In addition, many applications also depend on it. When using the note is the need to give the user XML-RPC permissions.
Tracsqlplugin
Home page: http://trac-hacks.org/wiki/tracsqlplugin. This plug-in should be rarely used, but it is really awesome! This plug-in is useful when you want to use hack TRAC. After it is enabled, it adds an "SQL" tab (upper right corner) on the page ). It can be used to: 1) query the database using SQL statements; 2) query formatted or unformatted data; 3. Export the data as CSV; 4) browse the database data table structure. Whether you use SQLite, MySQL, or PostgreSQL, you can use this plug-in. :
To be continued...