Ez produce project Python script


This script executes 'createdb, svnadmin, trac-admin' automatically

 # python ./ add

PROJECTNAME from stdin yourself.

  1. create PostgreSQL DB names PROJECTNAME
  2. create subversion repos to env[ 'svn' ][ 'repos' ]/PROJECTNAME
  3. create trac dir on env[ 'trac' ][ 'projct' ]/PROJECTNAME
  4. init trac project
  5. chmod 777 projectdir, projectdir/log, projectdir/plugins

'dropdb, remove repos dir, remove project directory automatically

 # python ./ del

PROJECTNAME from stdin yourself.

  1. check project
  2. drop PostgreSQL DB names PROJECTNAME
  3. remove subverion repos from env[ 'svn' ][ 'repos' ]/PROJECTNAME
  4. remove trac dir from env[ 'trac' ][ 'projct' ]/PROJECTNAME

Optional list

 # python ./ [list]
  1. show projects
  2. show current settings
    bash@localhost# ./ list
    Current Projects list: 
    合計 0
    Current settings: 
    A = auto detect,  o = valid path,  x = invalid path
           admin:   A       /usr/bin/svnadmin
           repos:   o       /srv/svn/repos
           templ:   o       /usr/share/trac/templates
           admin:   A       /usr/bin/trac-admin
           project: o       /home/trac/public_html
           create:  A       /usr/bin/createdb
           drop:    A       /usr/bin/dropdb
  • for postgresql *

Setting yourself


env = {
        'admin':'do not touch',
        'admin':'do not touch',
        'create':'do not touch',
        'drop':'do not touch'


bash@localhost# python ./ del

Current Projects list: 
total 4
drwxr-xr-x 7 root root 4096 2007-09-12 11:32 test

please input project name: test
[DEBUG] projectname = test
[INFO] removing trac project: test
[INFO] drop db test
[DEBUG] su - postgres -c "/usr/bin/dropdb test"
[INFO] complete.

[INFO] delete svn repos test
[DEBUG] rm -rf /srv/svn/repos/test

[INFO] complete.

[INFO] delete project dir test
[DEBUG] rm -rf /home/trac/public_html/test

[INFO] complete.


Bugs/Feature Requests

Existing bugs and feature requests for EzProduceScript are here.

If you have any issues, create a new ticket.


0 / 1


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

Recent Changes

2632 by token on 2007-09-12 05:14:50
some fix
2631 by token on 2007-09-12 04:45:51
python script version for trac-admin 0.10.4
470 by token on 2006-03-10 08:42:15

first commit maybe stable



Author: token?
Maintainer: token?

Last modified 8 months ago Last modified on Dec 15, 2015, 4:49:44 AM