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 |
# |
# |
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) |