From: Ɓukasz Rekucki Date: Tue, 8 Sep 2009 10:42:44 +0000 (+0200) Subject: Don't display files starting with a dot. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/cb08157935c371b4924ef921afa3c736731ee49d?hp=653c75b6951e028fe4c68e27cc9852e45fa418a6 Don't display files starting with a dot. --- diff --git a/apps/explorer/views.py b/apps/explorer/views.py index 19cc10b1..18f79b3e 100644 --- a/apps/explorer/views.py +++ b/apps/explorer/views.py @@ -46,7 +46,7 @@ def ajax_login_required(view): def file_list(request, repo): # latest_default = repo.get_branch_tip('default') - files = list( repo.repo[latest_default] ) + files = [ f for f in repo.repo[latest_default] if not f.startswith('.')] bookform = forms.BookUploadForm() return direct_to_template(request, 'explorer/file_list.html', extra_context={