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

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

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

revision 6 by bh, Tue Aug 28 15:41:52 2001 UTC revision 103 by jan, Fri Apr 19 14:23:24 2002 UTC
# Line 85  class Session(TitledObject, Modifiable): Line 85  class Session(TitledObject, Modifiable):
85    
86      def UnsetModified(self):      def UnsetModified(self):
87          """Unset the modified flag of the session and the maps"""          """Unset the modified flag of the session and the maps"""
         print "Session.UnsetModified: entry", self.modified  
88          Modifiable.UnsetModified(self)          Modifiable.UnsetModified(self)
89          for map in self.maps:          for map in self.maps:
90              map.UnsetModified()              map.UnsetModified()
         print "Session.UnsetModified: exit", self.modified  
91    
92    
93    
94  def create_empty_session():  def create_empty_session():
95      """Return an empty session useful as a starting point"""      """Return an empty session useful as a starting point"""
96        import os
97      session = Session('unnamed session')      session = Session('unnamed session')
98      session.SetFilename('unnamed.session')      session.SetFilename(None)
99      session.AddMap(Map('unnamed map'))      session.AddMap(Map('unnamed map'))
100        session.UnsetModified()
101      return session      return session

Legend:
Removed from v.6  
changed lines
  Added in v.103

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26