-
Notifications
You must be signed in to change notification settings - Fork 73
Pass keyword arguments to TDSCatalog object #303
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -265,7 +265,7 @@ class TDSCatalog(object): | |
|
|
||
| """ | ||
|
|
||
| def __init__(self, catalog_url): | ||
| def __init__(self, catalog_url, **kwargs): | ||
| """ | ||
| Initialize the TDSCatalog object. | ||
|
|
||
|
|
@@ -276,9 +276,10 @@ def __init__(self, catalog_url): | |
|
|
||
| """ | ||
| self.session = session_manager.create_session() | ||
| session_manager.set_session_options(**kwargs) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this line is doing any good since it sets options after
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line is needed for my proxy setup. I use this line to modify the HTTP headers on the request session. If you look inside
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If that's the case, you really should call
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting... if I comment out If I move the I'm not going to pretend like I understand what is going on. I just know the code in this PR is the only thing that works for my network.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you show the relevant sample of code you're using with siphon? At least the code that creates a
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just added another comment with some relevant code samples. Sorry it took so long, ran into some issues with |
||
|
|
||
| # get catalog.xml file | ||
| resp = self.session.get(catalog_url) | ||
| resp = self.session.get(catalog_url, **kwargs) | ||
| resp.raise_for_status() | ||
|
|
||
| # top level server url | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.