From 4f557bb52f5cdbfc55529900cde2c2de4c6eedb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eddy=20Petri=C8=99or?= Date: Tue, 20 Nov 2012 00:59:23 +0200 Subject: [PATCH] make a stub that should apply changes or not to an api --- OsmRoConsistency.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/OsmRoConsistency.py b/OsmRoConsistency.py index ab94efe..0188e8f 100755 --- a/OsmRoConsistency.py +++ b/OsmRoConsistency.py @@ -141,12 +141,18 @@ def do_stdref(amap, changes=[]): return ch +def _applyChanges2Map(changes, api): + #TODO: implement this + print (u"NOT IMPLEMENTED YET: _applyChanges2Map(changes, api)") + raise NotImplementedError + + def standardRefsMap(amap, commextra=u''): comm = __stdref_comm__ + commextra api = OsmApiExt(appname=u'OsmRoConsistency', comment=comm) changes = do_stdref(amap) - # TODO: apply or report changes + _applyChanges2Map(changes, api) del api @@ -159,7 +165,7 @@ def standardRefsXY(lat, lon, bbox_km=10): mymap = api.MapAroundPoint(bbox_km=bbox_km) changes = do_stdref(mymap) - # TODO: apply or report changes + _applyChanges2Map(changes, api) del api -- 2.11.4.GIT