* viewcvs/lib/viewcvs.py

(view_directory): Expose file sizes (when available) in the
    directory view.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@851 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
cmpilato 2004-05-13 04:29:08 +00:00
parent 9d63323c24
commit db610d9a21
1 changed files with 2 additions and 1 deletions

View File

@ -1266,7 +1266,7 @@ def view_directory(request):
for file in file_data:
row = _item(href=None, graph_href=None,
author=None, log=None, log_file=None, log_rev=None,
show_log=None, state=None)
show_log=None, state=None, size=None)
if file.log_error:
row.state = 'error'
@ -1338,6 +1338,7 @@ def view_directory(request):
file_where = where_prefix + (file.in_attic and 'Attic/' or '') \
+ file.name
else:
row.size = file.size
file_where = where_prefix + file.name
row.href = request.get_url(view_func=view_log,