Ticket #9553 (closed defect: fixed)

Opened 2 years ago

Last modified 8 months ago

format_author() error when using on wiki

Reported by: anonymous Assigned to: 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

macro_chrome_instance.diff (0.7 kB) - added by ejucovy on 03/27/12 17:05:02.

Change History

11/22/11 19:26:02 changed by rjollos

  • description changed.

03/27/12 17:05:02 changed by ejucovy

  • attachment macro_chrome_instance.diff added.

03/27/12 17:06:27 changed 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.

03/27/12 23:55:56 changed by ejucovy

  • cc set to ejucovy.

10/04/12 21:04:36 changed by rjollos

#10429 closed as a duplicate.

10/04/12 21:08:56 changed by rjollos

  • status changed from new to assigned.
  • owner changed from cbalan to rjollos.

10/04/12 21:21:31 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to fixed.

(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/Change #9553 (format_author() error when using on wiki)




Change Properties
Action