ConsoleUser

Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com

This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.

All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.

class ProjectManagementImpl.ProjectManagementImpl(system, config)

This class is the abstract parent that provides the interface to be an implementor in the Bridge pattern with the <no title> class.

Subclassess should provide paths to load proper images and should also provide access to appropriate implementations of methods commonly provided under <no title>

Parameters:

  • system: a <no title> object which lets us control the remote system

  • config: a <no title> object defining the current user

add_task(name, duration)

Create a new task with the given duration

Parameters:

  • name: the string name for the new task

  • duration: the string to enter for the task’s duration

load(path)

Load an existing project that can be found at the given path.

Parameters:

  • path: the string path to the existing project

new_project()

Create a new project to start working on.

save()

Save the current project without changing its name

save_as(path)

Save the current project to given path.

Parameters:

  • path: the string path to use when saving the project

ProjectManagementImpl.get_project_management(system, config, pm_type=None)

Find the correct class to provide the given type of project management and return an instance of it.

Parameters:

  • system: a <no title> object which lets us control the remote system

  • config: a <no title> object defining the current user

  • pm_type: optionally, a string matching the TYPE field of the

    module we want, values from config will be used if this is omitted

Return: An instance matching the desired type, or None if no

suitable module is found