summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornikosapi <me@nikosapi.org>2010-02-01 19:58:29 (GMT)
committer nikosapi <me@nikosapi.org>2010-02-01 19:58:29 (GMT)
commit5cb28440fe044fd870ebd5cd7d9fadd17c996e7f (patch)
treec4c5a42fcb4a1d71c9b125dc05bda2bdbb25059f
parent6b5f08f94713c63c92b47abf14eea136b8de5dee (diff)
downloadpanucci-5cb28440fe044fd870ebd5cd7d9fadd17c996e7f.zip
panucci-5cb28440fe044fd870ebd5cd7d9fadd17c996e7f.tar.gz
panucci-5cb28440fe044fd870ebd5cd7d9fadd17c996e7f.tar.bz2
ForwardingObservableService: swap dict key/item order
makes more sense that way
-rw-r--r--src/panucci/services.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panucci/services.py b/src/panucci/services.py
index 0212e4c..dc0f3d8 100644
--- a/src/panucci/services.py
+++ b/src/panucci/services.py
@@ -109,7 +109,7 @@ class ForwardingObservableService(ObservableService):
original object's signal is named "foo-bar" but you want this
object to emit "foo") you can do so by passing a dict to
signal_names. This dict must contain string pairs:
- { "from-object-name" : "new name" }
+ { "new name" : "from-object name", }
"""
# bail if the from object isn't an ObservableService
@@ -130,7 +130,7 @@ class ForwardingObservableService(ObservableService):
elif isinstance( signal_names, dict ):
signals = signal_names
- for from_name, to_name in signals.iteritems():
+ for to_name, from_name in signals.iteritems():
from_object.register( from_name, self._forward( to_name, caller ))
def _forward( self, emitted_signal_name, caller ):