Opened 6 years ago

#7274 new defect

events system not running if no repository installed

Reported by: hju Owned by: coling
Priority: normal Component: ClientsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


This is a nice pluging with a lot of very good ideas! I apologize for creating another ticket.

We are using trac without any version control system (svn) because we are not managing software projects.

The event system is not running, if there is no repository defined.

python /root/inst/clientsplugin/0.11/cron/run-client-event -c "Ticket Changes" -e /path/to/env
Traceback (most recent call last):
  File "/root/inst/clientsplugin/0.11/cron/run-client-event", line 97, in <module>
  File "/root/inst/clientsplugin/0.11/cron/run-client-event", line 87, in __init__
    repos = self.env.get_repository()
  File "/usr/lib/python2.5/site-packages/trac/", line 305, in get_repository
    return RepositoryManager(self).get_repository(authname)
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/", line 149, in get_repository
trac.core.TracError: Unsupported version control system "svn": Can't find an appropriate component, maybe the corresponding plugin was not enabled?

Obviously there is a check missing if a repository is defined. If I remove two lines of code in ´run-client-event´ line 87 and 88 I can pass this error.

class RunClientEvents:

    def __init__(self):
        locale.setlocale(locale.LC_ALL, '')
        self.env = open_environment(options.envpath)
        self.req = SendClientFakeReq()

        # Sync the repo so that any commits that happen to have been made
        # that include client comments are included.
#>>        repos = self.env.get_repository()
#>>        repos.sync()

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new The owner will remain coling.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.