fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
653c75b
)
Don't display files starting with a dot.
author
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 8 Sep 2009 10:42:44 +0000
(12:42 +0200)
committer
Łukasz Rekucki
<lrekucki@gmail.com>
Tue, 8 Sep 2009 10:42:44 +0000
(12:42 +0200)
apps/explorer/views.py
patch
|
blob
|
history
diff --git
a/apps/explorer/views.py
b/apps/explorer/views.py
index
19cc10b
..
18f79b3
100644
(file)
--- 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={