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

Add Nuxeo.can_use() to determine if a given operation is available

    XMLWordPrintable

    Details

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

      Description

      Add a new method into Nuxeo:

      def can_use(self, operation: str) -> bool:
      

      This is intended to set the new method so high in the layer to simply be able to do:

      if nuxeo.can_use("FileManager.CreateFolder"):
          # do something
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mschoentgen Mickaël Schoentgen
                Reporter:
                mschoentgen Mickaël Schoentgen
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 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 - 15 minutes
                  15m