Modify

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

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

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.