Opened 9 years ago

Closed 7 years ago

#4818 closed defect (worksforme)

global name 'Context' is not defined

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

Description (last modified by Ryan J Ollos)

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


Python traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/", line 406, in dispatch_request
  File "/usr/lib/python2.5/site-packages/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/codereview/", 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 7 years ago by Ryan J Ollos

Description: modified (diff)
Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Sebastian Marek.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.