maposmatic-dev
[Top][All Lists]
Advanced

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

[Maposmatic-dev] [PATCH] Fix a bug with ocitysmap config path.


From: gael . utard
Subject: [Maposmatic-dev] [PATCH] Fix a bug with ocitysmap config path.
Date: Sun, 8 Aug 2010 12:01:13 +0200

From: Gaël Utard <address@hidden>

In settings_local.py, OCITYSMAP_CFG_PATH is set to None by default
and render.py put this value in a list before passing it to OCitySMap
constructor that compares it with None, not a list with a None item.

Signed-off-by: Gaël Utard <address@hidden>
---
 scripts/render.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/render.py b/scripts/render.py
index 39de1b6..e0c829e 100755
--- a/scripts/render.py
+++ b/scripts/render.py
@@ -149,7 +149,7 @@ class JobRenderer(threading.Thread):
         l.info("Rendering job #%d '%s'..." % (self.job.id, self.job.maptitle))
 
         try:
-            renderer = OCitySMap([OCITYSMAP_CFG_PATH], self.prefix)
+            renderer = OCitySMap(OCITYSMAP_CFG_PATH, self.prefix)
             config = RenderingConfiguration()
             config.title = self.job.maptitle
             config.osmid = self.job.administrative_osmid
-- 
1.7.0.4




reply via email to

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