| 52 | === Turning an Existing {{{trac.ini}}} File into a Template === |
| 53 | |
| 54 | The last project shown in the templates listed by `paster create --list-templates`, [source:traclegosscript/anyrelease/traclegos/project.py trac_project], is a template designed to turn an existing [http://trac.edgewall.org/wiki/TracIni trac.ini] configuration file into a [source:traclegosscript/anyrelease/traclegos/project.py TracProject] template that can be used by TracLegosScript for project creation. To turn an existing configuration `trac.ini` into a TracProject template, run: |
| 55 | |
| 56 | {{{ |
| 57 | paster create -t trac_project yourproject |
| 58 | }}} |
| 59 | |
| 60 | This will output a directory structure |
| 61 | |
| 62 | {{{ |
| 63 | yourproject/ |
| 64 | |-- setup.py |
| 65 | |-- yourproject |
| 66 | | |-- __init__.py |
| 67 | | |-- project.py |
| 68 | | `-- template |
| 69 | | `-- conf |
| 70 | | `-- trac.ini |
| 71 | `-- yourproject.egg-info |
| 72 | }}} |
| 73 | |
| 74 | To customize the template, edit `yourproject/yourproject/template/conf/trac.ini`. PasteScript template variables can be denoted and `pre` and `post` template writing setup can be done by customizing `yourproject/yourproject/project.py`. |
| 75 | |