/[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 525 by jonathan, Wed Mar 12 19:12:30 2003 UTC revision 526 by jonathan, Wed Mar 12 19:17:49 2003 UTC
# Line 17  import sys, string, os Line 17  import sys, string, os
17    
18  import xml.sax  import xml.sax
19  import xml.sax.handler  import xml.sax.handler
20  from xml.sax import make_parser, ErrorHandler  from xml.sax import make_parser, ErrorHandler, SAXNotRecognizedException
21    
22  from Thuban import _  from Thuban import _
23  from Thuban.common import *  from Thuban.common import *
# Line 299  def load_session(filename): Line 299  def load_session(filename):
299      # However, if you do have the site-package and you don't      # However, if you do have the site-package and you don't
300      # call these functions, the reader raises an exception      # call these functions, the reader raises an exception
301      #      #
302        # The reason we set these to 0 in the first place is
303        # because there is an unresolved issue with external
304        # entities causing an exception in the reader
305        #
306      try:      try:
307          parser.setFeature(xml.sax.handler.feature_validation, 0)          parser.setFeature(xml.sax.handler.feature_validation, 0)
308          parser.setFeature(xml.sax.handler.feature_external_ges, 0)          parser.setFeature(xml.sax.handler.feature_external_ges, 0)

Legend:
Removed from v.525  
changed lines
  Added in v.526

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26