Uploaded image for project: '1D Redmine '
  1. 1D Redmine
  2. REDMINE1D-780

[RM-9304] [python API] isolate internal classes and methods

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Labels:
      None

      Description

      Created on 2024-11-14 13:27:11 by Didier Vibert. % Done: 0

      In the pylibamazed python library only a fraction of the classes or of their methods are supposed to be public: that is to be used in a client code.

      It would be beneficial to isolate the internal ones from the public ones to be imported by the client. One avantage is also to allow a systematic decoration by the @exception_decorator@ of the public functions.

      One possible way to do it is to rename all the current classes with a dedicated suffix (eg @_internal@ or @_impl@,...) and inherit them from base classes with a non suffixed public name listing only the public method in the public base class.

        Attachments

          Activity

            People

            • Assignee:
              r2j.migrate Redmine-Jira Migtation
              Reporter:
              r2j.migrate Redmine-Jira Migtation
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: