Opened 13 years ago

Closed 12 years ago

#9553 closed defect (fixed)

format_author() error when using on wiki

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

Description (last modified by Ryan J Ollos)

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 12 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)

Changed 12 years ago by ejucovy

Attachment: macro_chrome_instance.diff added

comment:2 Changed 12 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 12 years ago by ejucovy

Cc: ejucovy added; anonymous removed

comment:4 Changed 12 years ago by Ryan J Ollos

#10429 closed as a duplicate.

comment:5 Changed 12 years ago by Ryan J Ollos

Owner: changed from Catalin BALAN to Ryan J Ollos
Status: newassigned

comment:6 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.