maposmatic-dev
[Top][All Lists]
Advanced

[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




reply via email to

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