Package gavo :: Package user :: Module importing :: Class RetvalWatcher
[frames] | no frames]

Class RetvalWatcher

source code

                object --+    
                         |    
base.observer.ObserverBase --+
                             |
                            RetvalWatcher

an Observer giving approproate program return values.

Basically, we want to return an error signature even if we managed to import things if at least once there was an error notification.

We define this "error occurred but we manage" code to 101 here. I'm sure we can do better than that.

Instance Methods
 
fixRetVal(self, msg) source code

Inherited from base.observer.ObserverBase: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  retval = 0
Properties

Inherited from object: __class__

Method Details

fixRetVal(self, msg)

source code 
Decorators:
  • @base.listensTo("Error")