Changeset f6a3925 in osmose-backend


Ignore:
Timestamp:
Dec 29, 2014 9:38:33 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
0eb7f82
Parents:
e0ac7f3
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (20/12/2014 20:52:07)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (29/12/2014 21:38:33)
Message:

No multiple name for DE with + and /

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/Name_Multiple.py

    r142176e rf6a3925  
    3030        self.errors[705] = { "item": 5030, "level": 1, "tag": ["name", "fix:survey"], "desc": T_(u"The name tag contains two names") } 
    3131 
    32         # In Thailand street added into exisint street are named like บ้านแพะแม่คือ ซอย 5/1 
     32        self.NoExtra = self.father.config.options.get("country") in ('DE') 
     33 
     34        # In Thailand street added into existing street are named like บ้านแพะแม่คือ ซอย 5/1 
    3335        self.streetSubNumber = self.father.config.options.get("country") in ('TH', 'VN') 
    3436        self.streetSubNumberRe = re.compile(u"^.*[0-9๐๑๒๓๔๕๖๗๘๙]/[0-9๐๑๒๓๔๕๖๗๘๙]+$") 
     
    4244        if ';' in tags["name"]: 
    4345            return [(705,0,{"en": "name=%s" % tags["name"]})] 
     46 
     47        if self.NoExtra: 
     48            return 
     49 
    4450        if '/' in tags["name"] and not (self.streetSubNumber and self.streetSubNumberRe.match(tags["name"])): 
    4551            return [(705,1,{"en": "name=%s" % tags["name"]})] 
Note: See TracChangeset for help on using the changeset viewer.