Modify

Opened 3 years ago

Closed 2 years ago

#9553 closed defect (fixed)

format_author() error when using on wiki

Reported by: anonymous Owned by: rjollos
Priority: normal Component: UserManagerPlugin
Severity: normal Keywords:
Cc: ejucovy Trac Release: 0.12

Description (last modified by rjollos)

Fresh install of Trac 0.12 with this plugin today.

When using [[UserProfilesList]] on this wiki get error:

Error: Macro UserProfilesList(None) failed
unbound method format_author() must be called with Chrome instance as first argument (got Request instance instead)

Have used the python API to set uses up, this seems to work fine as does the Admin side of this plugin.

Had the wiki working fine on a Trac 0.11 install last week.

Attachments (1)

macro_chrome_instance.diff (674 bytes) - added by ejucovy 2 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 3 years ago by rjollos

  • Description modified (diff)

Changed 2 years ago by ejucovy

comment:2 Changed 2 years ago by ejucovy

I'm also seeing this issue when trying to use the [[UserProfilesList]] macro on an installation of trac trunk@11017. The attached patch fixes the problem.

I haven't tested the patch against a 0.11 install though, so I'm not sure if it would break 0.11 compatibility.

comment:3 Changed 2 years ago by ejucovy

  • Cc ejucovy added

comment:4 Changed 2 years ago by rjollos

#10429 closed as a duplicate.

comment:5 Changed 2 years ago by rjollos

  • Owner changed from cbalan to rjollos
  • Status changed from new to assigned

comment:6 Changed 2 years ago by rjollos

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

(In [12113]) Fixes #9553: Chrome constructor was not being passed the required Environment object, resulting in an error when using the UserProfileList macro. Thanks to ejucovy for the patch. Tested with Trac 1.1.1dev-r11384.

Added setup.cfg so that SVN revision will be appended to the egg.

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.