13882ca01dbac45c6c48e79b61d005e1f66c93ef
1 from BTrees
.OOBTree
import OOBTree
2 from BTrees
.IOBTree
import IOBTree
5 if hasattr(p
, '_variants') :
6 delattr(p
, '_variants')
8 if not hasattr(p
, 'tiles_available') :
12 if hasattr(p
, '_methodResultsCache') and p
._methodResultsCache
.has_key('_getTile'):
14 for args
, value
in p
._methodResultsCache
['_getTile'].items() :
16 zoom
= float(args
['zoom'])
20 if not p
._tiles
.has_key(zoom
) :
21 p
._tiles
[zoom
] = IOBTree()
22 if not p
._tiles
[zoom
].has_key(x
) :
23 p
._tiles
[zoom
][x
] = IOBTree()
25 p
._tiles
[zoom
][x
][y
] = value
26 del p
._methodResultsCache
['_getTile']
28 elif not hasattr(p
, '_tiles'):