[kforge-user] Trac plugins

Gunnar Johansson info at gunnar-johansson.se
Mon Sep 10 09:37:50 UTC 2007


Hi,

I've played with installing trac plugins globally in /usr/share/trac/ 
plugins/ (default)
and enabling them in a global /usr/share/trac/conf/trac.ini

This works fine as long as you do a trac-admin upgrade, as noted in a  
previous thread.

My suggestion is to always do this upon trac service creation, which  
means adding something like this to the end of  
createTracProjectEnvironment() in plugin/trac/command.py:

cmd = '%s upgrade' % (self.tracadminBase)
status, output = commands.getstatusoutput(cmd)
if status:
      msg = 'Upgrade of trac project environment failed'
      msg += '(cmd was: %s) (output was: %s)' % (cmd, output)
      self.raiseError(msg)

If no extra plugins are added, nothing happens.  But at least it  
can't hurt..!

I've also noted that I get this error in the apache error.log:
kforge [ERROR] Failed to reload apache with [sudo /etc/init.d/apache2  
reload]

I've modified the sudoers list and apache does indeed reload, so I  
don't know why I get the error..

All for now,
Gunnar





More information about the kforge-user mailing list