"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/viewvc.py" between
viewvc-1.1.25.tar.gz and viewvc-1.1.26.tar.gz

About: ViewVC is a browser interface for CVS and Subversion version control repositories.

viewvc.py  (viewvc-1.1.25):viewvc.py  (viewvc-1.1.26)
# -*-python-*- # -*-python-*-
# #
# Copyright (C) 1999-2015 The ViewCVS Group. All Rights Reserved. # Copyright (C) 1999-2017 The ViewCVS Group. All Rights Reserved.
# #
# By using this file, you agree to the terms and conditions set forth in # By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC # the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at http://viewvc.org/license-1.html. # distribution or at http://viewvc.org/license-1.html.
# #
# For more information, visit http://viewvc.org/ # For more information, visit http://viewvc.org/
# #
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
# #
# viewvc: View CVS/SVN repositories via a web browser # viewvc: View CVS/SVN repositories via a web browser
# #
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
__version__ = '1.1.25' __version__ = '1.1.26'
# this comes from our library; measure the startup time # this comes from our library; measure the startup time
import debug import debug
debug.t_start('startup') debug.t_start('startup')
debug.t_start('imports') debug.t_start('imports')
# standard modules that we know are in the path or builtin # standard modules that we know are in the path or builtin
import sys import sys
import os import os
import fnmatch import fnmatch
skipping to change at line 982 skipping to change at line 982
where='', pathtype=vclib.DIR, where='', pathtype=vclib.DIR,
params={}, escape=1) params={}, escape=1)
items.append(root_item) items.append(root_item)
# add path part items # add path part items
path_parts = [] path_parts = []
for part in request.path_parts: for part in request.path_parts:
path_parts.append(part) path_parts.append(part)
is_last = len(path_parts) == len(request.path_parts) is_last = len(path_parts) == len(request.path_parts)
item = _item(name=part, href=None) item = _item(name=request.server.escape(part), href=None)
if not is_last or (is_dir and request.view_func is not view_directory): if not is_last or (is_dir and request.view_func is not view_directory):
item.href = request.get_url(view_func=view_directory, item.href = request.get_url(view_func=view_directory,
where=_path_join(path_parts), where=_path_join(path_parts),
pathtype=vclib.DIR, pathtype=vclib.DIR,
params={}, escape=1) params={}, escape=1)
elif not is_dir and request.view_func is not view_log: elif not is_dir and request.view_func is not view_log:
item.href = request.get_url(view_func=view_log, item.href = request.get_url(view_func=view_log,
where=_path_join(path_parts), where=_path_join(path_parts),
pathtype=vclib.FILE, pathtype=vclib.FILE,
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS