← Python library for reactable's TUIO ...

EuroPython 2008 + Django sprint →

Django and Trac install scripts for Virtualmin Pro

Since version 3.56 Virtualmin Pro is slowly gaining support for Python based web applications because it includes an official install script for Django. This makes my version of a Django install script slightly unnecessary, even though the official version only supports stable releases (0.96.1) and not the SVN trunk (which we all know is quite common in Djangoland). Anyway, I think this is great news.

Other Python based web applications also benefit from the official Django install script of course because there are some helpful features in Virtualmin’s codebase now. Which brings us to:

Trac

Virtualmin already does a great job managing Subversion repositories for virtual servers but misses an install scripts for a web application that makes working with these repositories easier later in daily work. Since I really like Trac for its ease of use, powerful features and ubiquity in the developer scene I wrote an install script for it: trac.pl.

Just put it in /etc/webmin/virtual-server/scripts/ and go to the “Install script” section. Keep in mind that you need to create the repositories (important: with “Allow anonymous read access?” set to yes) and give the users the appropriate rights to access the SVN repositories before.

trac install page

I used a server running Debian Etch and Virtualmin Pro 3.56 to build that and would love to hear what experience you have with it.

Django, Python May 2, 2008, 4:47 p.m. comments (1)

comments

Jonathan Adjei May 6, 2009, 1:20 a.m.

Hi,
I tried your Trac install script from Virtualmin pro, but I hit a mysql/Trac bug preventing your script from completing on my subversion repo. It seems to be due to the way Trac generates primary keys from urls for the index. With too long subversion paths, they end up getting truncated resulting in non-unique primary keys. SQLite doesn't have a problem with the path length for these keys and so completes happily.

http://trac.edgewall.org/ticket/3676

As Trac only supports SQLite fully still it seems, could your script be modified to offer SQLite installs when available instead of just MySQL?