Code

#19840 closed New feature (wontfix)

Traceback view: href to version control page

Reported by: guettli Owned by: nobody
Component: Uncategorized Version: 1.4
Severity: Normal Keywords: debug_view
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It would be very good if the traceback view (in DEBUG mode) would create links
to the version control page:

Example traceback:

/home/modwork_egs_dt/djangotools/utils/formutils.py in form2str
            rows.append(formdict.field(field, td_add=td_add.get(field, '')))
/home/modwork_egs_dt/djangotools/utils/formutils.py in field
                widget_str=bf.as_widget(bf.field.widget, attrs=attrs)
/home/modwork_egs_dt/django/forms/forms.py in as_widget

The file name of the python file should be a link to the version control. Of course this can only be done after
telling django where each app has its web repository.

In the above example "djangotools" is an app which is hosted in our company at http://foo.lan/viewvc/djangotools/
The debug page would need to create a link like this http://foo.lan/viewvc/djangotools/trunk/utils/formutils.py

I don't know how to implement it. But it would be a nice feature for developers.

Attachments (0)

Change History (2)

comment:1 Changed 14 months ago by lukeplant

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

I think this is of limited usefulness, especially given that for many developers, the version in source control is not going to be the same as the version on their machine - you are only going to be getting tracebacks on quite broken code, which usually will be much more likely to be work-in-progress code on a developer machine than in a central repo.

So I'm going to WONTFIX on that basis, and also because it would require a significant amount of set up to work at all, and is therefore not likely to be useful to the majority of users.

comment:2 Changed 14 months ago by lukeplant

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


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

 
Note: See TracTickets for help on using tickets.