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

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

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

trunk/thuban/Thuban/Model/base.py revision 1018 by jan, Fri May 23 12:54:24 2003 UTC branches/WIP-pyshapelib-bramz/Thuban/Model/base.py revision 2734 by bramz, Thu Mar 1 12:42:59 2007 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001, 2002 by Intevation GmbH  # Copyright (c) 2001, 2002, 2003 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 6  Line 6 
6  # Read the file COPYING coming with Thuban for details.  # Read the file COPYING coming with Thuban for details.
7    
8  """  """
9  Various base classes that didn't fir elsewhere  Various base classes that did not fit elsewhere.
10  """  """
11    
12  __version__ = "$Revision$"  __version__ = "$Revision$"
# Line 27  class TitledObject: Line 27  class TitledObject:
27    
28      def SetTitle(self, title):      def SetTitle(self, title):
29          self.title = title          self.title = title
30          if hasattr(self, 'issue'):  
31              self.issue(TITLE_CHANGED, self)          # FIXME: The TitledObject is almost always used in conjunction
32            # with Modifiable (the only exceptions currently are the
33            # tables). We should reall derive TitledObject from modifiable
34            # (would be good for the tables too) but that's taking things a
35            # bit far at the moment.
36            if hasattr(self, 'changed'):
37                self.changed(TITLE_CHANGED, self)
38    
39  class Modifiable(Publisher):  class Modifiable(Publisher):
40    
# Line 44  class Modifiable(Publisher): Line 50  class Modifiable(Publisher):
50      def UnsetModified(self):      def UnsetModified(self):
51          """Unset the modified flag.          """Unset the modified flag.
52    
53          If the modified flag is changed from set to inset by he call,          If the modified flag is changed from set to unset by the call,
54          issue a CHANGED message.          issue a CHANGED message.
55    
56          The modified flag itself is part of the state of the object so          The modified flag itself is part of the state of the object so

Legend:
Removed from v.1018  
changed lines
  Added in v.2734

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26