[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Fix generation of csv file for "no index" layou
From: |
gael . utard |
Subject: |
[Maposmatic-dev] [PATCH] Fix generation of csv file for "no index" layout |
Date: |
Sun, 1 Apr 2012 00:52:20 +0200 |
From: Gael UTARD <address@hidden>
Signed-off-by: Gael UTARD <address@hidden>
---
ocitysmap2/layoutlib/single_page_renderers.py | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/ocitysmap2/layoutlib/single_page_renderers.py
b/ocitysmap2/layoutlib/single_page_renderers.py
index 320f104..e329ddf 100644
--- a/ocitysmap2/layoutlib/single_page_renderers.py
+++ b/ocitysmap2/layoutlib/single_page_renderers.py
@@ -66,7 +66,6 @@ class SinglePageRenderer(Renderer):
Args:
rc (RenderingConfiguration): rendering parameters.
tmpdir (os.path): Path to a temp dir that can hold temp files.
- street_index (StreetIndex): None or the street index object.
index_position (str): None or 'side' (index on side),
'bottom' (index at bottom).
"""
@@ -521,16 +520,15 @@ class SinglePageRendererNoIndex(SinglePageRenderer):
name = 'plain'
description = 'Full-page layout without index.'
- def __init__(self, db, rc, tmpdir, dpi, street_index):
+ def __init__(self, db, rc, tmpdir, dpi, file_prefix):
"""
Create the renderer.
Args:
rc (RenderingConfiguration): rendering parameters.
tmpdir (os.path): Path to a temp dir that can hold temp files.
- street_index (StreetIndex): None or the street index object.
"""
- SinglePageRenderer.__init__(self, db, rc, tmpdir, dpi, None, None)
+ SinglePageRenderer.__init__(self, db, rc, tmpdir, dpi, file_prefix,
None)
@staticmethod
@@ -559,14 +557,13 @@ class SinglePageRendererIndexOnSide(SinglePageRenderer):
name = 'single_page_index_side'
description = 'Full-page layout with the index on the side.'
- def __init__(self, db, rc, tmpdir, dpi, street_index):
+ def __init__(self, db, rc, tmpdir, dpi, file_prefix):
"""
Create the renderer.
Args:
rc (RenderingConfiguration): rendering parameters.
tmpdir (os.path): Path to a temp dir that can hold temp files.
- street_index (StreetIndex): None or the street index object.
"""
SinglePageRenderer.__init__(self, db, rc, tmpdir, dpi, street_index,
'side')
@@ -596,16 +593,15 @@ class SinglePageRendererIndexBottom(SinglePageRenderer):
name = 'single_page_index_bottom'
description = 'Full-page layout with the index at the bottom.'
- def __init__(self, db, rc, tmpdir, dpi, street_index):
+ def __init__(self, db, rc, tmpdir, dpi, file_prefix):
"""
Create the renderer.
Args:
rc (RenderingConfiguration): rendering parameters.
tmpdir (os.path): Path to a temp dir that can hold temp files.
- street_index (StreetIndex): None or the street index object.
"""
- SinglePageRenderer.__init__(self, db, rc, tmpdir, dpi, street_index,
'bottom')
+ SinglePageRenderer.__init__(self, db, rc, tmpdir, dpi, file_prefix,
'bottom')
@staticmethod
def get_compatible_paper_sizes(bounding_box, zoom_level,
--
1.7.5.4
- [Maposmatic-dev] [PATCH] Fix generation of csv file for "no index" layout,
gael . utard <=