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

Add default return value on requests

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Impact type:
      API change

      Description

      When sending a request to the server, we should be able to specify a default return value in case the server sends back an error or the reply is empty, like so:

      self.request('/drive/configuration', default={})
      

        Attachments

          Activity

            People

            • Assignee:
              lklein Léa Klein
              Reporter:
              lklein Léa Klein
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: