|Version 3 (modified by linetor, 8 years ago) (diff)|
Create new projects without using the TracAdmin command line tool
This extension is designed to work with Trac 0.10.3 in a TracMultipleProjects/MultipleEnvironments configuration.
It adds a "Create New Project" page to the Admin menu, providing an alternative to the TracAdmin command-line tool. It also improves on TracAdmin by allowing default settings for the new projects, and by automatically adding the new projects' InterTrac settings to the global TracIni file.
This plugin does work, but it is not quite finished yet. Please see the current active tickets for details.
If you have any issues, create a new ticket.
Download the zipped source from here.
First ensure that the WebAdminPlugin is installed and enabled.
[components] createproj.* = enabled
This will make a new permission (called PROJECT_CREATE) available to your projects. For one of your project environments, you must give a user this permission, as shown below. Note that myenv should be replaced with the directory path of your project environment, and myuser should be a user's login name.
trac-admin myenv permission add myuser PROJECT_CREATE
This user will now be able to visit the "Create New Project" page on the Admin menu. They can fill in the form and create new project environments.
Configuring project defaults
To customise the default settings for a new project's TracIni file, you can create a defaults.ini file with corresponding settings. You must connect this file to the CreateProjectPlugin by adding the following option to your existing project's TracIni file:
[customsetup] project_defaults_ini = /path/to/defaults.ini