Modify

Opened 18 years ago

Closed 18 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/main.py", line 313, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 184, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "/usr/lib/python2.4/site-packages/trac/perm.py", line 267, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "/usr/lib/python2.4/site-packages/trac/perm.py", line 231, in get_user_permissions
    for perm in self.store.get_user_permissions(username):
  File "/usr/lib/python2.4/site-packages/trac/perm.py", line 106, in get_user_permissions
    subjects += list(provider.get_permission_groups(username))
  File "build/bdist.linux-x86_64/egg/dbauth/perm.py", 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 18 years ago by Alec Thomas

Description: modified (diff)

Formatted exception usefully.

comment:2 Changed 18 years ago by Brad Anderson

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

http://www.trac-hacks.org/browser/dbauthplugin/0.10/dbauth/perm.py#L46

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

comment:3 Changed 18 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
Action
as closed The owner will remain Brad Anderson.
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.