|
2 | 2 | ''' |
3 | 3 | Point Match APIs |
4 | 4 | ''' |
5 | | -import requests |
6 | 5 | import logging |
7 | 6 | from .render import format_baseurl, renderaccess |
8 | 7 | from .utils import NullHandler, get_json, put_json, rest_delete |
@@ -90,7 +89,7 @@ def swap_matchpair(match, copy=True): |
90 | 89 |
|
91 | 90 | @renderaccess |
92 | 91 | def get_matchcollection_owners(host=None, port=None, |
93 | | - session=requests.session(), |
| 92 | + session=None, |
94 | 93 | render=None, **kwargs): |
95 | 94 |
|
96 | 95 | """get all the matchCollection owners |
@@ -121,7 +120,7 @@ def get_matchcollection_owners(host=None, port=None, |
121 | 120 |
|
122 | 121 | @renderaccess |
123 | 122 | def get_matchcollections(owner=None, host=None, port=None, |
124 | | - session=requests.session(), render=None, **kwargs): |
| 123 | + session=None, render=None, **kwargs): |
125 | 124 | """get all the matchCollections owned by owner |
126 | 125 |
|
127 | 126 | :func:`renderapi.render.renderaccess` decorated function |
@@ -153,7 +152,7 @@ def get_matchcollections(owner=None, host=None, port=None, |
153 | 152 |
|
154 | 153 | @renderaccess |
155 | 154 | def get_match_groupIds(matchCollection, owner=None, host=None, |
156 | | - port=None, session=requests.session(), |
| 155 | + port=None, session=None, |
157 | 156 | render=None, **kwargs): |
158 | 157 | """get all the groupIds in a matchCollection |
159 | 158 |
|
@@ -190,7 +189,7 @@ def get_match_groupIds(matchCollection, owner=None, host=None, |
190 | 189 | def get_matches_outside_group(matchCollection, groupId, mergeCollections=None, |
191 | 190 | stream=True, |
192 | 191 | owner=None, host=None, |
193 | | - port=None, session=requests.session(), |
| 192 | + port=None, session=None, |
194 | 193 | render=None, **kwargs): |
195 | 194 | """get all the matches outside a groupId in a matchCollection |
196 | 195 | returns all matches where pGroupId == groupId and qGroupId != groupId |
@@ -237,7 +236,7 @@ def get_matches_outside_group(matchCollection, groupId, mergeCollections=None, |
237 | 236 | def get_matches_within_group(matchCollection, groupId, mergeCollections=None, |
238 | 237 | stream=True, |
239 | 238 | owner=None, host=None, port=None, |
240 | | - session=requests.session(), |
| 239 | + session=None, |
241 | 240 | render=None, **kwargs): |
242 | 241 | """get all the matches within a groupId in a matchCollection |
243 | 242 | returns all matches where pGroupId == groupId and qGroupId == groupId |
@@ -286,7 +285,7 @@ def get_matches_from_group_to_group(matchCollection, pgroup, qgroup, |
286 | 285 | mergeCollections=None, stream=True, |
287 | 286 | render=None, owner=None, host=None, |
288 | 287 | port=None, |
289 | | - session=requests.session(), **kwargs): |
| 288 | + session=None, **kwargs): |
290 | 289 | """get all the matches between two specific groups |
291 | 290 | returns all matches where pgroup == pGroupId and qgroup == qGroupId |
292 | 291 | OR pgroup == qGroupId and qgroup == pGroupId |
@@ -360,7 +359,7 @@ def get_matches_from_tile_to_tile(matchCollection, pgroup, pid, |
360 | 359 | qgroup, qid, mergeCollections=None, |
361 | 360 | render=None, owner=None, |
362 | 361 | host=None, port=None, |
363 | | - session=requests.session(), **kwargs): |
| 362 | + session=None, **kwargs): |
364 | 363 | """get all the matches between two specific tiles |
365 | 364 | returns all matches where |
366 | 365 | pgroup == pGroupId and pid=pId and qgroup == qGroupId and qid == qId |
@@ -415,7 +414,7 @@ def get_matches_with_group(matchCollection, pgroup, mergeCollections=None, |
415 | 414 | stream=True, |
416 | 415 | render=None, owner=None, |
417 | 416 | host=None, port=None, |
418 | | - session=requests.session(), **kwargs): |
| 417 | + session=None, **kwargs): |
419 | 418 | """get all the matches from a specific groups |
420 | 419 | returns all matches where pgroup == pGroupId |
421 | 420 |
|
@@ -461,7 +460,7 @@ def get_matches_with_group(matchCollection, pgroup, mergeCollections=None, |
461 | 460 | def get_match_groupIds_from_only(matchCollection, mergeCollections=None, |
462 | 461 | render=None, owner=None, |
463 | 462 | host=None, port=None, |
464 | | - session=requests.session(), **kwargs): |
| 463 | + session=None, **kwargs): |
465 | 464 | """get all the source pGroupIds in a matchCollection |
466 | 465 |
|
467 | 466 | :func:`renderapi.render.renderaccess` decorated function |
@@ -499,7 +498,7 @@ def get_match_groupIds_from_only(matchCollection, mergeCollections=None, |
499 | 498 | def get_match_groupIds_to_only(matchCollection, mergeCollections=None, |
500 | 499 | render=None, owner=None, |
501 | 500 | host=None, port=None, |
502 | | - session=requests.session(), **kwargs): |
| 501 | + session=None, **kwargs): |
503 | 502 | """get all the destination qGroupIds in a matchCollection |
504 | 503 |
|
505 | 504 | :func:`renderapi.render.renderaccess` decorated function |
@@ -538,7 +537,7 @@ def get_match_groupIds_to_only(matchCollection, mergeCollections=None, |
538 | 537 | def get_matches_involving_tile(matchCollection, groupId, id, |
539 | 538 | mergeCollections=None, stream=True, |
540 | 539 | owner=None, host=None, port=None, |
541 | | - session=requests.session(), **kwargs): |
| 540 | + session=None, **kwargs): |
542 | 541 | """get all the matches involving a specific tile |
543 | 542 | returns all matches where groupId == pGroupId and id == pId |
544 | 543 | OR groupId == qGroupId and id == qId |
@@ -586,7 +585,7 @@ def get_matches_involving_tile(matchCollection, groupId, id, |
586 | 585 | @renderaccess |
587 | 586 | def delete_point_matches_between_groups(matchCollection, pGroupId, qGroupId, |
588 | 587 | render=None, owner=None, host=None, |
589 | | - port=None, session=requests.session(), |
| 588 | + port=None, session=None, |
590 | 589 | **kwargs): |
591 | 590 | """delete all the matches between two specific groups |
592 | 591 | deletes all matches where (pgroup == pGroupId and qgroup == qGroupId) |
@@ -631,7 +630,7 @@ def delete_point_matches_between_groups(matchCollection, pGroupId, qGroupId, |
631 | 630 |
|
632 | 631 | @renderaccess |
633 | 632 | def import_matches(matchCollection, data, owner=None, host=None, port=None, |
634 | | - session=requests.session(), render=None, **kwargs): |
| 633 | + session=None, render=None, **kwargs): |
635 | 634 | """import matches into render database |
636 | 635 |
|
637 | 636 | :func:`renderapi.render.renderaccess` decorated function |
@@ -664,7 +663,7 @@ def import_matches(matchCollection, data, owner=None, host=None, port=None, |
664 | 663 |
|
665 | 664 | @renderaccess |
666 | 665 | def delete_collection(matchCollection, owner=None, host=None, port=None, |
667 | | - session=requests.session(), render=None, **kwargs): |
| 666 | + session=None, render=None, **kwargs): |
668 | 667 | """delete match collection from render database |
669 | 668 |
|
670 | 669 | :func:`renderapi.render.renderaccess` decorated function |
|
0 commit comments