Changes between Version 19 and Version 20 of TracLegosScript


Ignore:
Timestamp:
Sep 19, 2008, 3:57:35 AM (6 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracLegosScript

    v19 v20  
    1919 * programmatically
    2020
    21 !TracLegos also desires to make it easy to turn an existing project into a pastescript template.
     21!TracLegos also makes it easy to turn an existing project into a [http://pythonpaste.org/script/developer.html#template PasteScript template].
    2222
    2323== Bugs/Feature Requests ==
     
    5050}}}
    5151
     52=== Turning an Existing {{{trac.ini}}} File into a Template ===
     53
     54The 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{{{
     57paster create -t trac_project yourproject
     58}}}
     59
     60This will output a directory structure
     61
     62{{{
     63yourproject/
     64|-- setup.py
     65|-- yourproject
     66|   |-- __init__.py
     67|   |-- project.py
     68|   `-- template
     69|       `-- conf
     70|           `-- trac.ini
     71`-- yourproject.egg-info
     72}}}
     73
     74To 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
    5276=== Setup of [http://pythonpaste.org/webob/ WebOb] View for Project Creation ===
    5377
     
    5680Point your browser at http://127.0.0.1:8080 and you should be all set with a bare-bones web-based trac project creator.
    5781
    58 === Turning an Existing {{{trac.ini}}} File into a Template ===
    59 
    60 '''TODO'''
    6182
    6283== Example ==