/[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 605 by jonathan, Fri Apr 4 12:16:13 2003 UTC revision 683 by jonathan, Tue Apr 15 21:54:56 2003 UTC
# Line 244  class Saver: Line 244  class Saver:
244                            
245          # just playing now with lambdas and dictionaries          # just playing now with lambdas and dictionaries
246    
247          types = [[lambda p: 'clnull',          types = [[lambda p: 'clnull label="%s"' % p.GetLabel(),
248                    lambda p: 'clnull'],                    lambda p: 'clnull'],
249                   [lambda p: 'clpoint value="%s"' %                   [lambda p: 'clpoint label="%s" value="%s"' %
250                               str(p.GetValue()),                               (p.GetLabel(), str(p.GetValue())),
251                    lambda p: 'clpoint'],                    lambda p: 'clpoint'],
252                   [lambda p: 'clrange min="%s" max="%s"' %                   [lambda p: 'clrange label="%s" min="%s" max="%s"' %
253                               (str(p.GetMin()),                               (p.GetLabel(),
254                                (str(p.GetMax()))),                                str(p.GetMin()), (str(p.GetMax()))),
255                    lambda p: 'clrange']]                    lambda p: 'clrange']]
256    
257          def write_class_group(group):          def write_class_group(group):

Legend:
Removed from v.605  
changed lines
  Added in v.683

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26