/[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

revision 6 by bh, Tue Aug 28 15:41:52 2001 UTC revision 240 by bh, Wed Jul 24 17:16:09 2002 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001 by Intevation GmbH  # Copyright (c) 2001, 2002 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 46  class Modifiable(Publisher): Line 46  class Modifiable(Publisher):
46          self.modified = 0          self.modified = 0
47    
48      def changed(self, channel = None, *args):      def changed(self, channel = None, *args):
49          """Set the modified flag and issue a mesage on the given channel          """Set the modified flag and issue a message
50          with arguments args. Call this method whenever anything has  
51          changed in a layer"""          The message is issued on the channel given by channel with args
52            as the arguments.
53    
54            Subclasses should call this method whenever anything has
55            changed.
56            """
57          self.modified = 1          self.modified = 1
58          if channel is not None:          if channel is not None:
59              apply(self.issue, (channel, args))              self.issue(channel, *args)

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26