[Commits] (stearns) Pass return values through callNamedBlock(), to fix bug 2445.

commits at osafoundation.org commits at osafoundation.org
Mon Feb 7 17:14:20 PST 2005


Commit by: stearns
Modified files:
chandler/parcels/osaf/framework/blocks/Block.py 1.98 1.99

Log message:
Pass return values through callNamedBlock(), to fix bug 2445.

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/Block.py.diff?r1=text&tr1=1.98&r2=text&tr2=1.99

Index: chandler/parcels/osaf/framework/blocks/Block.py
diff -u chandler/parcels/osaf/framework/blocks/Block.py:1.98 chandler/parcels/osaf/framework/blocks/Block.py:1.99
--- chandler/parcels/osaf/framework/blocks/Block.py:1.98	Mon Feb  7 15:07:16 2005
+++ chandler/parcels/osaf/framework/blocks/Block.py	Mon Feb  7 17:14:18 2005
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.98 $"
-__date__ = "$Date: 2005/02/07 23:07:16 $"
+__version__ = "$Revision: 1.99 $"
+__date__ = "$Date: 2005/02/08 01:14:18 $"
 __copyright__ = "Copyright (c) 2003-2005 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -434,7 +434,7 @@
 
             # allow the compiler to optimize for non-debug cases
             if not __debug__:
-                callNamedMethod(block, methodName, event)
+                return callNamedMethod(block, methodName, event)
             else:
                 if Block.profileEvents and not Block.__profilerActive:                        
                     # create profiler lazily
@@ -453,7 +453,7 @@
                         Block.__profilerActive = False
                         raise
                 else:
-                    callNamedMethod(block, methodName, event)
+                    return callNamedMethod(block, methodName, event)
                             
         def callNamedMethod (block, methodName, event):
             """



More information about the Commits mailing list