Modify

Opened 17 years ago

Closed 17 years ago

#2839 closed defect (fixed)

Selecting a file in a code review task fails

Reported by: Sebastian Marek Owned by: Sebastian Marek
Priority: highest Component: PeerReviewPlugin
Severity: blocker Keywords:
Cc: Ben Longden, Rys, Ben Selby Trac Release: 0.11

Description

Selecting a file in a code review task fails with a message:

Trac detected an internal error:

AttributeError: 'Mimeview' object has no attribute 'preview_to_hdf'

Python Traceback Most recent call last:

  • File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py", line 398, in _dispatch_request Code fragment:
    1. try:
    2. if not env and env_error:
    3. raise HTTPInternalError(env_error)
    4. try:
    5. dispatcher = RequestDispatcher(env)
    6. dispatcher.dispatch(req)
    7. except RequestDone:
    8. pass
    9. resp = req._response or []
    10. except HTTPException, e:
    Local variables: Name Value after [' except RequestDone:', ' pass', ' resp = ... before [' try:', ' if not env and env_error:', ' raise ... dispatcher <trac.web.main.RequestDispatcher object at 0x88c464c> e AttributeError("'Mimeview' object has no attribute 'preview_to_hdf'",) env <trac.env.Environment object at 0x86b602c> env_error None exc_info (<type 'exceptions.AttributeError'>, AttributeError("'Mimeview' object has ... filename '/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py' frames [{'function': '_dispatch_request', 'lines_before': [' try:', ' ... has_admin True line ' dispatcher.dispatch(req)' lineno 397 message u"AttributeError: 'Mimeview' object has no attribute 'preview_to_hdf'" req <Request "GET u'/peerReviewPerform'"> resp [] tb <traceback object at 0x8a07acc> tb_hide None traceback 'Traceback (most recent call last):\n File ...
  • File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py", line 195, in dispatch Code fragment:
    1. req.args.get('FORM_TOKEN') != req.form_token:
    2. raise HTTPBadRequest('Missing or invalid form token. '
    3. 'Do you have cookies enabled?')
    4. # Process the request and render the template
    5. resp = chosen_handler.process_request(req)
    6. if resp:
    7. if len(resp) == 2: # Clearsilver
    8. chrome.populate_hdf(req)
    9. template, content_type = \
    10. self._post_process_request(req, *resp)
    Local variables: Name Value chosen_handler <codereview.peerReviewPerform.UserbaseModule object at 0x88c490c> chrome <trac.web.chrome.Chrome object at 0x8816ccc> err (<type 'exceptions.AttributeError'>, AttributeError("'Mimeview' object has ... handler <codereview.peerReviewPerform.UserbaseModule object at 0x88c490c> req <Request "GET u'/peerReviewPerform'"> self <trac.web.main.RequestDispatcher object at 0x88c464c>
  • File "build/bdist.linux-i686/egg/codereview/peerReviewPerform.py", line 173, in process_request

Attachments (0)

Change History (1)

comment:1 Changed 17 years ago by Sebastian Marek

Cc: Ben Longden Rys Ben Selby added; anonymous removed
Resolution: fixed
Status: newclosed

Now fixed and committed to 0.11 branch

Modify Ticket

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