90 |
processed[id(container)] = 1 |
processed[id(container)] = 1 |
91 |
return result |
return result |
92 |
|
|
93 |
|
def bool2str(b): |
94 |
|
if b: return "true" |
95 |
|
else: return "false" |
96 |
|
|
97 |
class SessionSaver(XMLWriter): |
class SessionSaver(XMLWriter): |
98 |
|
|
287 |
attrs = {} |
attrs = {} |
288 |
|
|
289 |
attrs["title"] = layer.title |
attrs["title"] = layer.title |
290 |
attrs["visible"] = ("false", "true")[int(layer.Visible())] |
attrs["visible"] = bool2str(layer.Visible()) |
291 |
|
|
292 |
if isinstance(layer, Layer): |
if isinstance(layer, Layer): |
293 |
attrs["shapestore"] = self.get_id(layer.ShapeStore()) |
attrs["shapestore"] = self.get_id(layer.ShapeStore()) |