7 | | A plugin that allows TRAC_ADMIN to edit files on the Trac server. Files can be specified in the configuration file. Paths may be absolute, or relative to the Trac environment. The user running the server must have appropriate permissions for the files in order to view or save them. |
| 7 | This is a plugin that allows Trac administrators (`TRAC_ADMIN`) to edit files on the Trac server. The editable files can be specified in the configuration file. Paths may be absolute, or relative to the Trac environment. The user running the server must have appropriate permissions for the files in order to view or save them. |
| 8 | |
| 9 | Sample `trac.ini` file with the editable files listed in the custom `[edit_file]` section: |
| 10 | {{{#!ini |
| 11 | [edit_file] |
| 12 | files = conf/trac.ini, /home/matt/public_html/notebook/TRACI/auth.db |
| 13 | }}} |
| 14 | |
| 15 | '''Note''': Relative paths will be computed relative to the location of `trac.ini`. Most Trac instances are laid out with folders like `conf/`, `db/`, `htdocs/` and so on. If your `trac.ini` file is in an odd place, this may not work the way you expect and you might want to use absolute paths instead. |