| 25 | == Configuration == |
| 26 | 1. Uninstall Trac Tweak UI if you have installed before. |
| 27 | |
| 28 | 2. Change to the directory containning setup.py. |
| 29 | |
| 30 | 3. If you want to install this plugin globally, that will install this plugin to the python path: |
| 31 | * python setup.py install |
| 32 | |
| 33 | 4. If you want to install this plugin to trac instance only: |
| 34 | * python setup.py bdist_egg |
| 35 | * copy the generated egg file to the trac instance's plugin directory |
| 36 | {{{ |
| 37 | cp dist/*.egg /srv/trac/env/plugins |
| 38 | }}} |
| 39 | |
| 40 | 5. Config trac.ini: |
| 41 | {{{ |
| 42 | [components] |
| 43 | tractweakui.* = enabled |
| 44 | }}} |
| 45 | |
| 46 | 6. Add following directory structure to trac environment's htdocs directory(using editcc as example): |
| 47 | {{{ |
| 48 | htdocs/tractweakui/ |
| 49 | }}} |
| 50 | |
| 51 | Or you can simply copy the htdocs/tractweakui/ in source to trac environment's htdocs directory. |
| 52 | |
29 | | 1. Select "/newticket", then select filter "editcc" |
30 | | 1. Click "Load Default", and edit filter javascript, then "Save" |
31 | | 1. Now click "New Ticket" to test the "editcc" javascript plugin. |
| 57 | 1. Select "/newticket", then select filter "editcc" |
| 58 | 1. Click "Load Default", and edit filter javascript, then "Save" |
| 59 | 1. Now click "New Ticket" to test the "editcc" javascript plugin. |