Uploaded image for project: 'Nuxeo Python Client'
  1. Nuxeo Python Client
  2. NXPY-136

Allow additionnal parameters to Directories.get()

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.3
    • Fix Version/s: 2.2.4
    • Component/s: Core

      Description

      By default, a Directories.get() call will retrieve 50 entries. And this is not customizable from the Python client.

      An improvement would be to allow to pass any additionnal parameters to that method, such as:

      entries = nuxeo.directories.get("nature", pageSize=10, currentPageIndex=1).entries
      

      Doing that will alow to pass even invalid parameters, but we have no way to check them.

      Rejected Idea

      Another kind of call would be possible:

      nuxeo.directories.get("nature", params={"pageSize": 10, "currentPageIndex": 1}).entries
      

      But is is too verbose IMO.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h