wiki:TracLegosScript

Version 2 (modified by k0s, 6 years ago) (diff)

--

building blocks for creating Trac projects

Description

TracLegos is software designed to assist with trac project creation. Its goal is to make project creation easy and flexible, allowing flexibility with regards to creation methodology as well as extensibility as a project factory for environments with advanced needs. TracLegos is not [at least by design, yet] meant for project upgrading or maintainence, but only to setup a project with sensible defaults.

TracLegos can be invoked in a number of ways:

  • through a command-line interface (legos.py)
  • through a WSGI wrapper around trac (web.py)
  • via paster create
  • programmatically

Bugs/Feature Requests

Existing bugs and feature requests for TracLegosScript are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out TracLegosScript from here using Subversion, or browse the source with Trac.

Example

Example of command line usage:

> create-trac-project 
Usage: create-trac-project [options] project <project2> <...> var1=1 var2=2 ...

assemble a trac project from components

Options:
  -h, --help            show this help message and exit
  -c CONF, --conf=CONF  site configuration files
  -d DIRECTORY, --directory=DIRECTORY
                        trac projects directory
  -i INHERIT, --inherit=INHERIT
                        .ini file to inherit from
  -r REQUIREMENTS, --requires=REQUIREMENTS
                        requirements files for plugins
  -s REPOSITORY, --repository=REPOSITORY
                        repository type to use
  -t TEMPLATES          trac.ini templates to be applied in order
  --list-templates      list available TracProject PasteScript templates
  --list-repositories   list repositories available for setup by TracLegos
> create-trac-project --list-templates
Available projects:
topp_trac_project: The Open Planning Project Trac Template
)> create-trac-project --list-repositories
Available repositories:
ExistingSVN: Use an existing repository
NewSVN: Create a new SVN repository
> create-trac-project -t topp-trac-project mynewproject # create a new project

Recent Changes

[12984] by rjollos on 2013-04-19 18:30:50
Refs #7262: Point setup,py link to TracSqlHelperScript 0.11 directory rather than anyrelease directory.
[8058] by ejucovy on 2010-06-02 19:24:22
apply slinkp's patch for preventing overwriting of existing projects (#7164)
[7767] by k0s on 2010-03-10 02:10:24
slightly more verbose handling of the postgres database

Author/Contributors

Originally developed at The Open Planning Project

Author: k0s
Contributors:

Attachments (4)

Download all attachments as: .zip