Modify

Opened 4 years ago

Closed 4 years ago

#7982 closed defect (fixed)

Enabling ClientsAdminPanel & ClientsEventsAdminPanel causes commit ticket updater error

Reported by: tdrissen@… Owned by: coling
Priority: normal Component: ClientsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

I've installed ClientsPlugin and it works fine, but I have a problem with this in combination with the ticket commit updater.

When I enable the ClientsAdminPanel and ClientEventsAdminPanel plugin in the adminpanel, the auto ticket commit updater fails. It just doesn't update tickets anymore. The trac error log reports the following:

2010-11-03 11:41:31,153 Trac[console] ERROR: Exception in trac-admin command:
Traceback (most recent call last):

File "build/bdist.linux-x86_64/egg/trac/admin/console.py", line 107, in onecmd

rv = cmd.Cmd.onecmd(self, line) or 0

File "/usr/lib/python2.5/cmd.py", line 218, in onecmd

return self.default(line)

File "build/bdist.linux-x86_64/egg/trac/admin/console.py", line 266, in default

return cmd_mgr.execute_command(*args)

File "build/bdist.linux-x86_64/egg/trac/admin/api.py", line 117, in execute_command

for cmd in provider.get_admin_commands() or []:

AttributeError?: 'ClientAdminPanel?' object has no attribute 'get_admin_commands'

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by anonymous

  • Owner changed from coling to anonymous
  • Status changed from new to assigned

comment:2 Changed 4 years ago by anonymous

  • Owner changed from anonymous to coling
  • Status changed from assigned to new

comment:3 Changed 4 years ago by dr4cul4

Solution is quite simple. You need to add missing function to two classes in files admin.py and eventadmin.py:

def get_admin_commands(self):

return None

comment:4 Changed 4 years ago by coling

  • Resolution set to fixed
  • Status changed from new to closed

(In [9914]) Add missing methods to admin classes. Closes #7982.

Thanks for the tip. I've not tested, but I'm sure you're correct :D

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.