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

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

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

revision 2641 by jonathan, Fri May 6 14:17:03 2005 UTC revision 2642 by bh, Fri Jul 1 20:49:04 2005 UTC
# Line 1  Line 1 
1  # Copyright (C) 2001, 2002, 2003, 2004 by Intevation GmbH  # Copyright (C) 2001, 2002, 2003, 2004, 2005 by Intevation GmbH
2  # Authors:  # Authors:
3  # Jan-Oliver Wagner <[email protected]>  # Jan-Oliver Wagner <[email protected]>
4  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
# Line 248  class SessionLoader(XMLReader): Line 248  class SessionLoader(XMLReader):
248                                      % (element, d.name))                                      % (element, d.name))
249              elif d.conversion == "filename":              elif d.conversion == "filename":
250                  value = os.path.abspath(os.path.join(self.GetDirectory(),                  value = os.path.abspath(os.path.join(self.GetDirectory(),
251                                                       value))                                                       self.encode(value)))
252              elif d.conversion == "ascii":              elif d.conversion == "ascii":
253                  value = value.encode("ascii")                  value = value.encode("ascii")
254              elif d.conversion:              elif d.conversion:
# Line 579  class SessionLoader(XMLReader): Line 579  class SessionLoader(XMLReader):
579          del self.cl_group, self.cl_prop          del self.cl_group, self.cl_prop
580    
581      def start_clrange(self, name, qname, attrs):      def start_clrange(self, name, qname, attrs):
582            attrs = self.check_attrs(name, attrs,
583                                     [AttrDesc("range", False, None),
584                                      AttrDesc("min", False, None),
585                                      AttrDesc("max", False, None)])
586    
587          range = attrs.get((None, 'range'), None)          range = attrs['range']
588          # for backward compatibility (min/max are not saved)          # for backward compatibility (min/max are not saved)
589          min   = attrs.get((None, 'min'), None)          min   = attrs['min']
590          max   = attrs.get((None, 'max'), None)          max   = attrs['max']
591    
592          try:          try:
593              if range is not None:              if range is not None:

Legend:
Removed from v.2641  
changed lines
  Added in v.2642

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26