Project

General

Profile

Support #22438

Simplification and reduction of the code related to how directories are being managed

Added by Lorena Lobato Pardavila 3 months ago. Updated about 1 month ago.

Status:
Work in progress
Priority:
Normal
Category:
-
Target version:
Start date:
04/24/2019
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

I saw we can reduce the code with the removal of clientDirSupport and chmodDirSupport and replace it by the classes from cWDictFile: simpleDirSupport and chmodDirSupport, respectively. This is because since we no longer need the user for privilege separation and, after removing not needed code, we can call the parent class directly. Here, an overview:

class clientDirSupport(cWDictFile.simpleDirSupport)
         • Inherits from cWDictFile.simpleDirSupport
         • It’s being passed by parameter to chmodClientDirSupport and being instantiated there.

class chmodCLientDirSupport(clientDirSupport)
        • Receives clientDirSupport (it can be replaced by simpleDirSupport)
         • It will be passed to clientProxiesDirSupport


To do: Remove the unnecessary classes and update clientLogDirSupport and clientProxiesDirSupport with the new classes

To keep in mind: already baseClientDirSupport and clientSymLink are inhering from the respectively classes in cWDictFile (cWDictFile.multiSimpleDirSupport). BUT, the problem here is in baseClientDirSupport, which will create the user base directory, using the function that I’d like to remove – cliendDirSupport. It’s being passed as a parameter for the function that supports create_dir and delete_dir in class dirsSupport (used for many directories creation).

History

#1 Updated by Lorena Lobato Pardavila 3 months ago

  • Status changed from New to Work in progress
  • Description updated (diff)

#2 Updated by Lorena Lobato Pardavila 2 months ago

  • Target version changed from v3_5 to v3_5_1

#3 Updated by Lorena Lobato Pardavila about 1 month ago

  • Parent task deleted (#20215)

#4 Updated by Lorena Lobato Pardavila about 1 month ago

  • Target version changed from v3_5_1 to v3_5_x


Also available in: Atom PDF