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

Add Batch.is_s3() helper

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.1
    • Component/s: Core

      Description

      Guessing the upload provider from outside the client is something like:

      if object.batch.get("provider", "") == "s3":
          # ...
      

      Not very intuitive nor pratical.

      The new method, Batch.is_s3(), will simply do:

      return self.provider == "s3"
      

      It will be used in Nuxeo Drive directly and can be useful to anyone implementing uploads using that client.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m