Edgewall Software
Modify

Ticket #4090 (closed defect: invalid)

Opened 5 years ago

Last modified 5 years ago

TypeError (PermissionCache is not iterable) on Roadmap page

Reported by: jtauber@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: devel
Severity: normal Keywords:
Cc:
Release Notes:
API Changes:

Description

While trying to verify fix for #4059 on r4150, I get

  File "/Library/Frameworks/Python.framework/Versions/2.5/share/trac/templates/error.html", line 79, in <Expression u""TRAC_ADMIN" not in perm">
    <py:when test="'TRAC_ADMIN' not in perm">
TypeError: argument of type 'PermissionCache' is not iterable

Attachments

Change History

comment:1 Changed 5 years ago by cboos

Well, you apparently have an installation issue, and you're using some old trac/perm.py code, as in the new one, PermissionCache has a __contains__ method which should be called here (source:trunk/trac/perm.py@4150#L270).

comment:2 Changed 5 years ago by jtauber@…

Any suggestions on how to upgrade from one (running) revision on the trunk to another?

I did an svn up then re-installed which is what let to this error.

comment:3 Changed 5 years ago by jtauber@…

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

Okay, solved the problem. I was not properly stopping tracd and so an old instance was still running with new code on disk.

I'll close it invalid as it was operator error.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.