Changeset 6abfc6d in osmose-frontend


Ignore:
Timestamp:
Nov 22, 2012 8:34:33 PM (5 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
f28f39a
Parents:
8115742
git-author:
Jocelyn Jaubert <jocelyn.jaubert@…> (06/09/2012 20:10:24)
git-committer:
Jocelyn Jaubert <jocelyn.jaubert@…> (22/11/2012 20:34:33)
Message:

fix add-markers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/add-markers.py

    r8115742 r6abfc6d  
    22#-*- coding: utf-8 -*- 
    33 
    4 all_flags = ["O", "L", "K", "P", "M", "F", "=", "|", "||", "::", ".:.", "T", "t", "X", "><", "L''", "[]", "."] 
     4all_flags = ["O", "L", "K", "P", "M", "F", "=", "|", "||", "::", ".:.", "T", "t", "X", "><", "L'", "[]", "."] 
    55 
    66from pyPgSQL import PgSQL 
     
    4040#  fr = raw_input("French: ") 
    4141 
    42   print "insert into dynpoi_item values (%d, %d, '%s', '%s', NULL, ARRAY[1, 2, 3]);" % (i, c, color, avail_flags[0]) 
     42  print "insert into dynpoi_item values (%d, %d, '%s', '%s', NULL, ARRAY[1, 2, 3]);" % (i, c, color, avail_flags[0].replace("'", "''")) 
    4343  avail_flags.remove(avail_flags[0]) 
    4444 
Note: See TracChangeset for help on using the changeset viewer.