/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/save.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/save.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2384 by jan, Thu Oct 7 14:24:24 2004 UTC revision 2552 by jonathan, Fri Jan 28 15:54:00 2005 UTC
# Line 90  def sort_data_stores(stores): Line 90  def sort_data_stores(stores):
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    
# Line 284  class SessionSaver(XMLWriter): Line 287  class SessionSaver(XMLWriter):
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())

Legend:
Removed from v.2384  
changed lines
  Added in v.2552

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26