diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2009-04-28 19:55:07 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2009-04-28 19:55:07 +0200 |
commit | 2ef70464cbfeead5795a46ba2354b7b5b1c3780c (patch) | |
tree | ecb8b1d453dfc1ee9d0134ec7826910a250eed45 /src/pyexiv2.py | |
parent | 4eb85bd3b88222b9e33c5a76e771fd284c7b0fb5 (diff) | |
download | pyexiv2-2ef70464cbfeead5795a46ba2354b7b5b1c3780c.tar.gz |
Notify on extend().
Diffstat (limited to 'src/pyexiv2.py')
-rw-r--r-- | src/pyexiv2.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py index d8fbe5e..3b1a04a 100644 --- a/src/pyexiv2.py +++ b/src/pyexiv2.py @@ -259,6 +259,9 @@ class ListenerInterface(object): def item_appended(self, item): raise NotImplementedError() + def extended(self, items): + raise NotImplementedError() + # TODO: define other methods. @@ -300,6 +303,10 @@ class NotifyingList(list): super(NotifyingList, self).append(item) self._notify_listeners('item_appended', item) + def extend(self, items): + super(NotifyingList, self).extend(items) + self._notify_listeners('extended', items) + class MetadataTag(object): |