Skip to main content
Skip table of contents

ppms.project_rights

The project_rights module contains various project related functions.

Functions

Function

Parameters

Return Value

Description

call_project_by_type(pr_id, focus_module_name='', disabled_subs=[], tcalc=False)

pr_id: Projekt-ID

focus_module_name: Python-ID
disabled_subs: List of module ids
tcalc: True or False

A Module object

Open a specific module. When focus_module_name is given, the global setting with that python id will be retrieved, the Alpha (120) will be read, and, if that module is part of the project module panel, it will be focused. disabled_subs is a list of module ids that should not be loaded in the panel. When tcalc is True, the project is calculated before it is opened.

call_project_report(pr_id, report_id, prg_report=False, report_module_id=None)

pr_id: Projekt-ID
report_id: Statusbericht

prg_report: True or False
report_module_id: MOD

Open a status report

current_user_is_mpm()

True or False

Checks the value of Objektberechtigung to see whether the currently logged in user is a MPM, PM, or MPM & MRM

current_user_is_multi_portfolio_manager()

True or False

Checks the value of Objektberechtigung to see whether the currently logged in user is a PM

current_user_is_multi_req_manager()

True or False

Checks the value of Objektberechtigung to see whether the currently logged in user is a MRM, PM, or MPM & MRM

get_project_is_main_project(pr_id)

pr_id: Projekt-ID

True or False

Checks whether a project is a main project

get_project_rights(pr_id)

pr_id: Projekt-ID

See get_rights_for_project

Returns the project rights of the user who is currently logged in. See get_rights_for_project

get_rights_for_project(user, project_id)

user: Benutzer
project_id: Projekt-ID

ppms.constants.PROJECT_RIGHTS_FORBIDDEN, ppms.constants.PROJECT_RIGHTS_VIEW, ppms.constants.PROJECT_RIGHTS_PARTLY_EDIT or ppms.constants.PROJECT_RIGHTS_FULL_EDIT

Gets the access rights of a specific user for a specific project

get_stakeholder_access_rights(user, project_id)

user: Benutzer
project_id: Projekt-ID

ppms.constants.STAKEHOLDER_RIGHTS_NO_STAKEHOLDER, ppms.constants.STAKEHOLDER_RIGHTS_VIEW or ppms.constants.STAKEHOLDER_RIGHTS_EDIT

Gets the highest stakeholder rights the user has in this project

get_user_access_rights_for_project_by_access_code(user, project_id)

user: Benutzer
project_id: Projekt-ID

ppms.constants.PROJECT_RIGHTS_VIEW or ppms.constants.PROJECT_RIGHTS_FORBIDDEN

Compares the users Zugriff auf Projekte with the Kostenstellen-Strukturcode of the projects to determine his/her access right

resource_is_assigned_to_task_in_project(resource, project_id)

resource: Ressource
project_id: Projekt-ID

True or False

Checks whether the given resource is assigned to any task in the project

set_report_title(pr_id, report_id, current_report_title='')

pr_id: Projekt-ID
report_id: Statusbericht

current_report_title: Desired report name

Rename a status report. If no name is given, a default is generated based on the report id

user_is_mpm(user)

user: Benutzer

True or False

Checks the value of Objektberechtigung to see whether the user is a MPM, PM, or MPM & MRM

user_is_multi_portfolio_manager(user)

user: Benutzer

True or False

Checks the value of Objektberechtigung to see whether the user is a PM

user_is_multi_req_manager(user)

user: Benutzer

True or False

Checks the value of Objektberechtigung to see whether the user is a MRM, PM, or MPM & MRM

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.