admin design page should not show more than 1000 files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user