Changeset 6b1955a in osmose-backend


Ignore:
Timestamp:
Jul 1, 2014 3:36:12 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
26b4711
Parents:
8cbece2
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (01/07/2014 12:22:48)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (01/07/2014 15:36:12)
Message:

Fix variable type object into analyser_osmosis_relation_associatedStreet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/analyser_osmosis_relation_associatedStreet.py

    r5788a14 r6b1955a  
    531531        self.callback50 = lambda res: {"class":5, "subclass":1, "data":[self.node_full, self.relation, self.positionAsText]} 
    532532        self.callback51 = lambda res: {"class":5, "subclass":1, "data":[self.way_full, self.relation, self.positionAsText]} 
    533         self.callbackC2 = lambda res: {"class":12, "subclass":1, "data":[lambda t: self.typeMapping[res[1]], None, self.positionAsText]} 
     533        self.callbackC2 = lambda res: {"class":12, "subclass":1, "data":[lambda t: self.typeMapping[res[1]](t), None, self.positionAsText]} 
    534534 
    535535    def analyser_osmosis(self): 
     
    539539        self.run(sql61) 
    540540        self.run(sql62, lambda res: {"class":6, "subclass":1, 
    541             "data":[lambda t: self.typeMapping[res[1]], None, self.positionAsText], 
     541            "data":[lambda t: self.typeMapping[res[1]](t), None, self.positionAsText], 
    542542            "text":{"fr": u"Multiples numéros \"%s\" dans la voie \"%s\"" % (res[4], res[3]), "en": u"Multiple numbers \"%s\" in way \"%s\"" % (res[4], res[3])} } ) 
    543543        self.run(sql70) 
     
    545545        self.run(sql90) 
    546546        self.run(sqlA0, lambda res: {"class":8, "subclass":1, "data":[self.relation_full, self.relation_full, self.positionAsText]} ) 
    547         self.run(sqlB0, lambda res: {"class":9, "subclass":1, "data":[lambda t: self.typeMapping[res[1]], None, self.positionAsText, self.relation_full]} ) 
     547        self.run(sqlB0, lambda res: {"class":9, "subclass":1, "data":[lambda t: self.typeMapping[res[1]](t), None, self.positionAsText, self.relation_full]} ) 
     548        pass 
    548549 
    549550    def analyser_osmosis_all(self): 
Note: See TracChangeset for help on using the changeset viewer.