258 |
self._add_shapestore(store) |
self._add_shapestore(store) |
259 |
return store |
return store |
260 |
|
|
261 |
|
def AddShapeStore(self, shapestore): |
262 |
|
"""Add the shapestore to the session. |
263 |
|
|
264 |
|
The session only holds a weak reference to the shapestore, so it |
265 |
|
will automatically be removed from the session when the last |
266 |
|
reference goes away. |
267 |
|
""" |
268 |
|
self._add_shapestore(shapestore) |
269 |
|
return shapestore |
270 |
|
|
271 |
def TransientDB(self): |
def TransientDB(self): |
272 |
if self.transient_db is None: |
if self.transient_db is None: |
273 |
filename = os.path.join(self.temp_directory(), "transientdb") |
filename = os.path.join(self.temp_directory(), "transientdb") |