Fix markup-view <img> source URLs to contain the revision of the

resource.  Reported by Roland Schwingel <Roland.Schwingel@onevision.de>.

* viewcvs/lib/viewcvs.py
  (view_markup): Add the revision to the URL for image-type markup views.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@808 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
cmpilato 2004-03-08 16:49:37 +00:00
parent fe97494fd0
commit ea1274a8b8
1 changed files with 1 additions and 1 deletions

View File

@ -1026,7 +1026,7 @@ def view_markup(request):
generate_page(request, cfg.templates.markup, data)
if is_viewable_image(request.mime_type):
url = request.get_url(view_func=view_checkout, params={})
url = request.get_url(view_func=view_checkout, params={'rev': rev})
print '<img src="%s"><br>' % url
while fp.read(8192):
pass