Modify

Opened 7 years ago

Last modified 5 months ago

#7274 new defect

events system not running if no repository installed

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

Description

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>
    RunClientEvents()
  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/env.py", line 305, in get_repository
    return RepositoryManager(self).get_repository(authname)
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/api.py", line 149, in get_repository
    name=self.repository_type))
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 (1)

comment:1 Changed 5 months ago by Ryan J Ollos

Owner: Colin Guthrie deleted

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.