Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow butlers in subclasses #30

Merged
merged 1 commit into from Jun 1, 2016
Merged

Allow butlers in subclasses #30

merged 1 commit into from Jun 1, 2016

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented May 28, 2016

Reference catalog loaders will frequently need butlers.
This allows subclasses to optionally take a butler.

@@ -171,6 +171,10 @@ class LoadReferenceObjectsTask(pipeBase.Task):
ConfigClass = LoadReferenceObjectsConfig
_DefaultName = "LoadReferenceObjects"

def __init__(self, butler=None, *args, **kwargs):
pipeBase.Task.__init__(self, *args, **kwargs)
self.butler = butler
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a doc string and describe the butler argument. Perhaps explain briefly why it is present.

Reference catalog loaders will frequently need butlers.
This allows subclasses to optionally take a butler.
@SimonKrughoff SimonKrughoff merged commit 7623246 into master Jun 1, 2016
@ktlim ktlim deleted the tickets/DM-5798 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants