Modify

Opened 5 years ago

Closed 3 years ago

#4818 closed defect (worksforme)

global name 'Context' is not defined

Reported by: Chitlesh Goorah Owned by: proofek
Priority: normal Component: PeerReviewPlugin
Severity: normal Keywords:
Cc: chitlesh@… Trac Release: 0.10

Description (last modified by rjollos)

Hello there, I was able to load the peerreview plugin on trac.

trac-0.10.5-1.fc10.noarch and trac-peerreview-plugin-2.0-1.svn5357

But I can't create a code review. Below you will find a screenshot and the python traceback

Screenshot:
https://fedorahosted.org/fedora-electronic-lab/attachment/ticket/8/peerreview.png

Python traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/codereview/peerReviewBrowser.py", line 113, in process_request
    context = Context.from_request(req, 'source', path, node.created_rev)
NameError: global name 'Context' is not defined

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by rjollos

  • Description modified (diff)
  • Resolution set to worksforme
  • Status changed from new to closed

Context is imported from trac.mimeviewer. This is working correctly on the current trunk. Suggest using the trunk, and please reopen if you continue to have issues.

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