aboutsummaryrefslogtreecommitdiffstats
path: root/src/pyexiv2.py
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2009-04-28 20:00:10 +0200
committerOlivier Tilloy <olivier@tilloy.net>2009-04-28 20:00:10 +0200
commit6a0980ac1cb704dd115748c808d7a9e4aa1fd05a (patch)
tree911deeea3d3ec60806492385e9e80f8d18137e21 /src/pyexiv2.py
parent2ef70464cbfeead5795a46ba2354b7b5b1c3780c (diff)
downloadpyexiv2-6a0980ac1cb704dd115748c808d7a9e4aa1fd05a.tar.gz
Notify on insert().
Diffstat (limited to 'src/pyexiv2.py')
-rw-r--r--src/pyexiv2.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index 3b1a04a..e72e9d9 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -262,6 +262,9 @@ class ListenerInterface(object):
def extended(self, items):
raise NotImplementedError()
+ def item_inserted(self, index, item):
+ raise NotImplementedError()
+
# TODO: define other methods.
@@ -307,6 +310,10 @@ class NotifyingList(list):
super(NotifyingList, self).extend(items)
self._notify_listeners('extended', items)
+ def insert(self, index, item):
+ super(NotifyingList, self).insert(index, item)
+ self._notify_listeners('item_inserted', index, item)
+
class MetadataTag(object):