Modify

Opened 10 years ago

Closed 10 years ago

#1528 closed defect (fixed)

get_permission_actions returns nested list

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

Description (last modified by Noah Kantrowitz)

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 10 years ago by Noah Kantrowitz

Description: modified (diff)

Mmm, formatey goodness.

comment:2 Changed 10 years ago by Petr Machata

Resolution: fixed
Status: newclosed

Fixed in r2231.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Petr Machata.
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.