maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH 4/6] Make the ITEMS_PER_PAGE settings local.


From: Maxime Petazzoni
Subject: [Maposmatic-dev] [PATCH 4/6] Make the ITEMS_PER_PAGE settings local.
Date: Thu, 7 Jan 2010 13:07:42 +0100

---
 www/settings.py                |    2 --
 www/settings_local.py-template |    3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/settings.py b/www/settings.py
index c0a31db..7abb321 100644
--- a/www/settings.py
+++ b/www/settings.py
@@ -162,7 +162,5 @@ except KeyError:
 LOG.addHandler(_fh)
 LOG.info("log restarted.")
 
-ITEMS_PER_PAGE = 25
-
 def has_gis_database():
     return GIS_DATABASE_NAME and GIS_DATABASE_NAME != ''
diff --git a/www/settings_local.py-template b/www/settings_local.py-template
index 7806f51..ea58a1c 100644
--- a/www/settings_local.py-template
+++ b/www/settings_local.py-template
@@ -59,3 +59,6 @@ BASE_BOUNDING_BOX = (51.956, -7.838, 41.458, 11.937)
 # Maximum length of the bounding box to be rendered. This length is
 # checked in both directions (longitude and latitude)
 BBOX_MAXIMUM_LENGTH_IN_METERS = 20000
+
+# Number of items displayed per page in the jobs and maps pages
+ITEMS_PER_PAGE = 25
-- 
1.6.3.3.261.g85c6





reply via email to

[Prev in Thread] Current Thread [Next in Thread]