Changeset 279827a in osmose-backend


Ignore:
Timestamp:
May 27, 2013 8:50:57 PM (6 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
de9b4c5, a910761
Parents:
064d0e3
Message:

Support all kind of space in ref into plugin TagFix_MultipleTag_FR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/TagFix_MultipleTag_FR.py

    r19119eb r279827a  
    4343            "secondaire": "secondaire", 
    4444        } 
    45         self.Ref = re.compile(u"^([ANDMC]|RN|RD|VC|CR|CE)[- ]?[0-9]", re.IGNORECASE) 
     45        self.Ref = re.compile(r"^([ANDMC]|RN|RD|VC|CR|CE)[-\s]?[0-9]?", re.IGNORECASE) 
    4646 
    4747    def node(self, data, tags): 
     
    5050        if "school:FR" in tags and "amenity" not in tags: 
    5151            err.append((30321, 5, {"fr": u"Il faut un tag amenity=nursery|kindergarten|school en plus de school:FR"})) 
    52  
    53         if not "name" in tags: 
    54             return err 
    5552 
    5653        if "amenity" in tags: 
     
    9693    if not a.node(None, {"highway":"e", "ref": "3"}): 
    9794        print "nofail 3" 
     95    if a.node(None, {"highway":"e", "ref": u"D\u20073"}): 
     96        print "fail 4" 
Note: See TracChangeset for help on using the changeset viewer.