admin design page should not show more than 1000 files

This commit is contained in:
mdipierro
2013-09-01 12:41:24 -05:00
parent a68ac572ab
commit 866d6c6db4
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.09.01.12.37.17
Version 2.6.0-development+timestamp.2013.09.01.12.40.14
+2 -1
View File
@@ -1016,8 +1016,9 @@ def design():
privates.sort()
# Get all static files
MAXNFILES = 1000
statics = listdir(apath('%s/static/' % app, r=request), '[^\.#].*')
statics = [x.replace('\\', '/') for x in statics]
statics = [x.replace('\\', '/') for x in statics[:MAXNFILES]]
statics.sort()
# Get all languages