/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/application.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/application.py

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

revision 535 by bh, Fri Mar 14 20:42:18 2003 UTC revision 671 by bh, Tue Apr 15 18:09:47 2003 UTC
# Line 88  class ThubanApplication(wxApp, Publisher Line 88  class ThubanApplication(wxApp, Publisher
88                          # The ImportError exception was raised from                          # The ImportError exception was raised from
89                          # inside the thubanstart module.                          # inside the thubanstart module.
90                          sys.stderr.write(_("Cannot import the thubanstart"                          sys.stderr.write(_("Cannot import the thubanstart"
91                                           "module\n"))                                           " module\n"))
92                          traceback.print_exc(None, sys.stderr)                          traceback.print_exc(None, sys.stderr)
93                      else:                      else:
94                          # There's no thubanstart module.                          # There's no thubanstart module.
# Line 191  class ThubanApplication(wxApp, Publisher Line 191  class ThubanApplication(wxApp, Publisher
191          self.SetSession(create_empty_session())          self.SetSession(create_empty_session())
192    
193      def OpenSession(self, filename):      def OpenSession(self, filename):
194            """Open the session in the file named filename"""
195            # Make sure we deal with an absolute pathname. Otherwise we can
196            # get problems when saving because the saving code expects an
197            # absolute directory name
198            filename = os.path.abspath(filename)
199          session = load_session(filename)          session = load_session(filename)
200          session.SetFilename(filename)          session.SetFilename(filename)
201          session.UnsetModified()          session.UnsetModified()

Legend:
Removed from v.535  
changed lines
  Added in v.671

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26