/[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 56 by bh, Thu Sep 13 13:54:37 2001 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    
# Line 98  def create_empty_session(): Line 96  def create_empty_session():
96      session = Session('unnamed session')      session = Session('unnamed session')
97      session.SetFilename('unnamed.session')      session.SetFilename('unnamed.session')
98      session.AddMap(Map('unnamed map'))      session.AddMap(Map('unnamed map'))
99        session.UnsetModified()
100      return session      return session

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26