Repository navigation
[#561] implementation: get_maximum_permissions_for_path #602
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
f93a93c
a295d7a
66676ca
36bba51
7744d93
91cf0b1
0cc80df
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 |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| from collections import OrderedDict | ||
| import copy | ||
| import uuid | ||
|
|
||
| from irods import MAX_SQL_ROWS | ||
| from irods.models import Model | ||
|
|
@@ -290,6 +292,11 @@ | |
| self._columns = columns | ||
| self._args = args or [] | ||
|
|
||
| def reset_for_new_query(self, args=None): | ||
| self._continue_index = 0 | ||
| if args is not None: | ||
| self._args = args | ||
|
|
||
| def register(self): | ||
| if not self._sql: | ||
| raise ValueError("Empty query") | ||
|
|
@@ -313,7 +320,10 @@ | |
| response = conn.recv() | ||
| return response | ||
|
|
||
| def execute(self, limit=MAX_SQL_ROWS, offset=0, options=0, conditions=None): | ||
| def execute(self, limit=MAX_SQL_ROWS, offset=0, options=0, conditions=None, instance=None): | ||
|
Contributor
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. What does
Collaborator
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. executes from an alternative instance of the class, other than |
||
| if instance is not None: | ||
| self = instance | ||
|
|
||
| target = self._alias or self._sql | ||
|
|
||
| if conditions is None: | ||
|
|
@@ -363,7 +373,9 @@ | |
| yield result | ||
|
|
||
|
|
||
|
|
||
|
|
||
| # Record a copy of the original value of IRODS_QUERY_LIMIT for possible future access. | ||
| import irods.helpers as helpers | ||
|
|
||
| cached_values = helpers.create_value_cache(globals()) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing documentation.