From 866d6c6db496fc2837bd1883c39e793edb4863f5 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 1 Sep 2013 12:41:24 -0500 Subject: [PATCH] admin design page should not show more than 1000 files --- VERSION | 2 +- applications/admin/controllers/default.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index b2b88b6c..65e2fffd 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/applications/admin/controllers/default.py b/applications/admin/controllers/default.py index 1cdc3dd4..6aefe163 100644 --- a/applications/admin/controllers/default.py +++ b/applications/admin/controllers/default.py @@ -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