pyxecm 2.0.2__py3-none-any.whl → 2.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyxecm might be problematic. Click here for more details.

pyxecm/otds.py CHANGED
@@ -565,6 +565,7 @@ class OTDS:
565
565
  self.logger.info("Session has expired - try to re-authenticate...")
566
566
  self.authenticate(revalidate=True)
567
567
  retries += 1
568
+ time.sleep(REQUEST_RETRY_DELAY / 10) # Add a delay before retrying
568
569
  else:
569
570
  # Handle plain HTML responses to not pollute the logs
570
571
  content_type = response.headers.get("content-type", None)
@@ -1431,7 +1432,7 @@ class OTDS:
1431
1432
  Filters such as user state, location, etc. can be applied.
1432
1433
 
1433
1434
  Returning a generator avoids loading a large number of nodes into memory at once. Instead you
1434
- can iterate over the potential large list of related workspaces.
1435
+ can iterate over the potential large list of OTDS users.
1435
1436
 
1436
1437
  Example usage:
1437
1438
  users = otds_object.get_users_iterator(partition="Content Server Members", page_size=10)
@@ -1452,10 +1453,6 @@ class OTDS:
1452
1453
  page_size (int, optional):
1453
1454
  The chunk size for the number of users returned by one
1454
1455
  REST API call. If None, then a default of 250 is used.
1455
- next_page_cookie (str, optional):
1456
- A key returned by a former call to this method in with
1457
- a return key 'nextPageCookie' (see example below). This
1458
- can be used to get the next page of result items.
1459
1456
 
1460
1457
  Returns:
1461
1458
  iter:
@@ -1928,7 +1925,7 @@ class OTDS:
1928
1925
  """Get an iterator object that can be used to traverse all groups for a given users partition.
1929
1926
 
1930
1927
  Returning a generator avoids loading a large number of nodes into memory at once. Instead you
1931
- can iterate over the potential large list of related workspaces.
1928
+ can iterate over the potential large list of OTDS groups.
1932
1929
 
1933
1930
  Example usage:
1934
1931
  groups = otds_object.get_groups_iterator(partition="Content Server Members", page_size=10)
@@ -1943,13 +1940,9 @@ class OTDS:
1943
1940
  If None, no filtering applies.
1944
1941
  where_location (str | None, optional):
1945
1942
  Filter based on the DN of the Organizational Unit.
1946
- page_size (int, optional):
1943
+ page_size (int | None, optional):
1947
1944
  The chunk size for the number of groups returned by one
1948
1945
  REST API call. If None, then a default of 250 is used.
1949
- next_page_cookie (str, optional):
1950
- A key returned by a former call to this method in with
1951
- a return key 'nextPageCookie' (see example below). This
1952
- can be used to get the next page of result items.
1953
1946
 
1954
1947
  Returns:
1955
1948
  iter: