Opened 10 years ago

Closed 10 years ago

#1528 closed defect (fixed)

get_permission_actions returns nested list

Reported by: izekia Owned by: ant_39
Priority: normal Component: CalendarPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description (last modified by coderanger)

so such error happens:

Traceback (most recent call last):
  File "C:\Python24\lib\site-packages\trac\web\", line 383, in dispatch_request
  File "C:\Python24\lib\site-packages\trac\web\", line 179, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "c:\Python24\lib\site-packages\trac\", line 263, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "c:\Python24\lib\site-packages\trac\", line 228, in get_user_permissions
  File "c:\Python24\lib\site-packages\trac\", line 226, in _expand_meta
    [_expand_meta(perm) for perm in meta[action]]
  File "c:\Python24\lib\site-packages\trac\", line 224, in _expand_meta
    permissions[action] = True
TypeError: list objects are unhashable

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by coderanger

  • Description modified (diff)

Mmm, formatey goodness.

comment:2 Changed 10 years ago by ant_39

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

Fixed in r2231.

Add Comment

Modify Ticket

as closed The owner will remain ant_39.
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.