Modify

Opened 7 years ago

Closed 7 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\main.py", line 383, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python24\lib\site-packages\trac\web\main.py", line 179, in dispatch
    req.perm = PermissionCache(self.env, req.authname)
  File "c:\Python24\lib\site-packages\trac\perm.py", line 263, in __init__
    self.perms = PermissionSystem(env).get_user_permissions(username)
  File "c:\Python24\lib\site-packages\trac\perm.py", line 228, in get_user_permissions
    _expand_meta(perm)
  File "c:\Python24\lib\site-packages\trac\perm.py", line 226, in _expand_meta
    [_expand_meta(perm) for perm in meta[action]]
  File "c:\Python24\lib\site-packages\trac\perm.py", line 224, in _expand_meta
    permissions[action] = True
TypeError: list objects are unhashable

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by coderanger

  • Description modified (diff)

Mmm, formatey goodness.

comment:2 Changed 7 years ago by ant_39

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

Fixed in r2231.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ant_39. Next status will be '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.