Opened 8 years ago

Closed 8 years ago

#422 closed defect (fixed)

AttributeError: 'unicode' object has no attribute 'self'

Reported by: anonymous Owned by: brad
Priority: normal Component: DbAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (last modified by athomas)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/", line 313, in dispatch_request
  File "/usr/lib/python2.4/site-packages/trac/web/", line 184, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "/usr/lib/python2.4/site-packages/trac/", line 267, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "/usr/lib/python2.4/site-packages/trac/", line 231, in get_user_permissions
    for perm in
  File "/usr/lib/python2.4/site-packages/trac/", line 106, in get_user_permissions
    subjects += list(provider.get_permission_groups(username))
  File "build/bdist.linux-x86_64/egg/dbauth/", line 46, in get_permission_groups
AttributeError: 'unicode' object has no attribute 'self'

Ubuntu 6.06 AMD64
Python 2.4
SQLite 3

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by athomas

  • Description modified (diff)

Formatted exception usefully.

comment:2 Changed 8 years ago by brad

The weird thing is that the line in question doesn't have a unicode or self reference.

Something with python handling strings on your system? Because that's the beginning of a string variable...

comment:3 Changed 8 years ago by brad

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

(In [839]) fixed bonehead typo, moved to named args in format string, fixes #422, I believe.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from brad. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.