Trac Ticket Template
Table of Contents
SEE:ZoomQuiet ~ Collection KSPEG Trac hacking
Description
- TicketTemplate? enable users to create ticket using templates which can be customized by Trac administrator and themselves.
- Trac administrator can spcify a general system level template default for all uncustomized ticket types.
- System level ticket templates are ticket type specific.
- User level ticket templates (ie, my template) can be managed by common users.
- This version can work with Trac 0.11/0.12.
Changes in version 0.7
- This version has fully i18n support with Trac 0.12dev-r9098 above.
- New feature: support My Template. Everyone can manage their own templates now.
- New feature: template can include any fields, the default field is description.
Bugs/Feature Requests
Existing bugs and feature requests for TracTicketTemplatePlugin are here.
If you have any issues, create a new ticket.
Download
Download the zipped source from here.
Source
You can check out TracTicketTemplatePlugin from here using Subversion, or browse the source with Trac.
Install
IMPORTANT: Please BACKUP you ticket templates if you are upgrading this plugin.
You can install this software as normal Trac plugin.
- Uninstall this plugin if you have installed before.
- Change to the directory containning setup.py.
- (Optional): If you are using Trac 0.12 with i18n, you should compile language files here:
python setup.py compile_catalog -f
- If you want to install this plugin globally, that will install this plugin to the python path:
- python setup.py install
- If you want to install this plugin to trac instance only:
- python setup.py bdist_egg
- copy the generated egg file to the trac instance's plugin directory
cp dist/*.egg /srv/trac/env/plugins
- Config trac.ini:
[components] tickettemplate.* = enabled [tickettemplate] field_list = summary, description, reporter, owner, priority, cc, milestone, component, version, type enable_custom = true
- Set field_list to choose which field should be included in template.
- Set enable_custom to false will disable My Template, which default is true.
About i18n support
Current languages are:
- English
- Chinese(simplified)
If you can't find language you want, you can do it yourself.
- Init your language catalog, take et_EE for example:
python setup.py init_catalog -l et_EE
- Update catalog
python setup.py update_catalog -l et_EE
- Do translate with your favorite editor, the language file locate in tickettemplate/loclate/et_EE/LC_MESSAGES/tickettemplate.po
- Note: this .po file should be saved with UTF8 encoding.
- Update catalog again, for normalizing the manual edits:
python setup.py update_catalog -l et_EE
- Generate the compiled catalog:
python setup.py compile_catalog -f
- Reinstall the plugin
See TracL10N for more details.
Contributing your translation are welcome.
Example
- Trac administrator should define the template for all ticket types:
- Login as administrator, open Admin -> Ticket System -> Ticket Template
- load the template of each ticket type, modify them and apply changes
- After defined ticket template, normal user can create ticket using predefined template by change ticket types dropdown list items.
- Screen capture of newticket page.
- Screen capture of Admin panel.
Recent Changes
[7517] by richard on 02/09/10 02:41:28
Fixed #6589
- Add feature to disabled My Template
[7515] by richard on 02/08/10 18:45:54
- This version has fully i18n support with Trac 0.12dev r9098 above.
- New feature: support My Template. Everyone can manage their own templates now.
- New feature: template can include any fields, the default field is description.
[6332] by richard on 08/07/09 05:06:26
update license to BSD
[6330] by richard on 08/07/09 04:41:01
update license in setup.py
Author/Contributors
Attachments
- NewTicketPage-v0.7.png (24.0 kB) - added by richard on 02/08/10 18:57:46.
- AdminTicketTemplatePage-v0.7.png (14.3 kB) - added by richard on 02/08/10 18:58:03.



