Opened 16 years ago
Closed 16 years ago
#65 closed defect (fixed)
Tub._tubHasBeenShutDown has the wrong signature
Reported by: | bgranger | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 0.2.8 |
Component: | unknown | Version: | 0.2.5 |
Keywords: | Cc: |
Description
The Tub._tubHasBeenShutDown method is used for Tub.getReference and Tub.connectTo once Tub.stopService has been called. But _tubHasBeenShutDown has a signature that is incompatible with connectTo and stopService. Thus, if Tub.stopService has been called and the user tries to call connectTo or stopService (which both point to _tubHasBeenShutDown), they see errors like this:
exceptions.TypeError?: _tubHasBeenShutDown() takes exactly 1 argument (2 given)
To fix, this, _tubHasBeenShutDown should probably have *args and kwargs:
def _tubHasBeenShutDown(self, *args, kwargs):
raise RuntimeError?("Sorry, but this Tub has been shut down.")
Change History (1)
comment:1 Changed 16 years ago by
Milestone: | undecided → 0.2.8 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed, in [96edd64cd2c7fd1b04aa65db9e513777f7cef50c]