Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def woeid2path(id):

    tmp = str(id)
    parts = []

    while len(tmp) > 3:
        parts.append(tmp[0:3])
        tmp = tmp[3:]

    if len(tmp):
        parts.append(tmp)

    return "/".join(parts)
        


src/w/h/whereonearth-airport-HEAD/bin/generate_meta.py   whereonearth-airport(Download)
            woeid = props['woe:id']
 
            root = utils.woeid2path(woeid)
            path = "/%s/%s.json" % (root, woeid)