/[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 740 by jonathan, Fri Apr 25 09:14:04 2003 UTC revision 773 by jonathan, Tue Apr 29 14:34:23 2003 UTC
# Line 210  class SessionSaver(XMLWriter): Line 210  class SessionSaver(XMLWriter):
210          """Write the projection.          """Write the projection.
211          """          """
212          if projection and len(projection.params) > 0:          if projection and len(projection.params) > 0:
213              self.open_element("projection")              self.open_element("projection",
214                                  {"name": escape(projection.GetName())})
215              for param in projection.params:              for param in projection.params:
216                  self.write_element('parameter value="%s"' % escape(param))                  self.write_element('parameter value="%s"' % escape(param))
217              self.close_element("projection")              self.close_element("projection")
# Line 232  class SessionSaver(XMLWriter): Line 233  class SessionSaver(XMLWriter):
233          attrs["stroke"]       = lc.GetDefaultLineColor().hex()          attrs["stroke"]       = lc.GetDefaultLineColor().hex()
234          attrs["stroke_width"] = str(lc.GetDefaultLineWidth())          attrs["stroke_width"] = str(lc.GetDefaultLineWidth())
235          attrs["fill"]         = lc.GetDefaultFill().hex()          attrs["fill"]         = lc.GetDefaultFill().hex()
236            attrs["visible"]      = ("false", "true")[int(layer.Visible())]
237    
238          self.open_element("layer", attrs)          self.open_element("layer", attrs)
239    

Legend:
Removed from v.740  
changed lines
  Added in v.773

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26