Opened 12 years ago

Closed 12 years ago

#422 closed defect (fixed)

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

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

Description (last modified by Alec Thomas)

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 12 years ago by Alec Thomas

Description: modified (diff)

Formatted exception usefully.

comment:2 Changed 12 years ago by Brad Anderson

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 12 years ago by Brad Anderson

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Brad Anderson.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.