[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH 01/13] Extend MapRenderingJob with stylesheet, p
From: |
Thomas Petazzoni |
Subject: |
[Maposmatic-dev] [PATCH 01/13] Extend MapRenderingJob with stylesheet, papersize and layout |
Date: |
Thu, 5 Aug 2010 16:56:14 +0200 |
Those new fields will be used to store the parameters for a given
rendering. All three parameters are defined as strings, which are the
unique identifiers. Those identifiers will later be provided by
OCitySMap.
To update your database to take into account those new fields, use the
following commands:
ALTER TABLE maposmatic_maprenderingjob ADD COLUMN
stylesheet varchar(256) NOT NULL;
ALTER TABLE maposmatic_maprenderingjob ADD COLUMN
layout varchar(256) NOT NULL;
ALTER TABLE maposmatic_maprenderingjob ADD COLUMN
papersize varchar(256) NOT NULL;
Signed-off-by: Thomas Petazzoni <address@hidden>
---
www/maposmatic/models.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/www/maposmatic/models.py b/www/maposmatic/models.py
index 6f13c2d..15f0a3f 100644
--- a/www/maposmatic/models.py
+++ b/www/maposmatic/models.py
@@ -82,6 +82,9 @@ class MapRenderingJob(models.Model):
NONCE_SIZE = 16
maptitle = models.CharField(max_length=256)
+ stylesheet = models.CharField(max_length=256)
+ layout = models.CharField(max_length=256)
+ papersize = models.CharField(max_length=256)
# When rendering through administrative city is selected, the
# following three fields must be non empty
--
1.7.0.4
- [Maposmatic-dev] [PATCH 01/13] Extend MapRenderingJob with stylesheet, papersize and layout,
Thomas Petazzoni <=
- [Maposmatic-dev] [PATCH 03/13] Add a get_bbox_from_osm_id() helper, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 11/13] Fix language selector to work on Chrome, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 07/13] Fix maptitle handling in MapRenderingJobForm, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 04/13] Add layout, stylesheet and papersize to MapRenderingForm, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 13/13] Improve the slippy map notifier usage to show when the area is too big, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 12/13] Move Ajax service to the /apis/ directory, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 10/13] Update licence years, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 02/13] Implement a skeleton /papersize/ service, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 06/13] Implement a brand new wizard for map creation, Thomas Petazzoni, 2010/08/05
- [Maposmatic-dev] [PATCH 08/13] Add link and form to search maps on the front page, Thomas Petazzoni, 2010/08/05