Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/m/a/mapproxy-HEAD/mapproxy/config/loader.py   mapproxy(Download)
    def dimensions(self):
        from mapproxy.layer import Dimension
        dimensions = {}
 
        for dimension, conf in self.conf.get('dimensions', {}).iteritems():
            values = [str(val) for val in  conf.get('values', ['default'])]
            default = conf.get('default', values[-1])
            dimensions[dimension.lower()] = Dimension(dimension, values, default=default)

src/m/a/MapProxy-1.6.0/mapproxy/config/loader.py   MapProxy(Download)
    def dimensions(self):
        from mapproxy.layer import Dimension
        dimensions = {}
 
        for dimension, conf in self.conf.get('dimensions', {}).iteritems():
            values = [str(val) for val in  conf.get('values', ['default'])]
            default = conf.get('default', values[-1])
            dimensions[dimension.lower()] = Dimension(dimension, values, default=default)