當前位置: 首頁>>代碼示例>>Python>>正文


Python Project.getNode方法代碼示例

本文整理匯總了Python中Project.Project.getNode方法的典型用法代碼示例。如果您正苦於以下問題:Python Project.getNode方法的具體用法?Python Project.getNode怎麽用?Python Project.getNode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Project.Project的用法示例。


在下文中一共展示了Project.getNode方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: task

# 需要導入模塊: from Project import Project [as 別名]
# 或者: from Project.Project import getNode [as 別名]
    task_develop_project_system.setDescription(
        "Develop a working project system under workspace system in the intranet"
    )

    # Add the Owner of each task (Who is going to fulfill the task)
    appCalendar.addOwner(mUser)
    task_develop_calendar.setOwner(mUser)
    task_develop_task_system.setOwner(mUser)
    task_develop_workspace_system.setOwner(mUser2)
    task_develop_project_system.setOwner(mUser2)

    # Add the event to our calendar
    appCalendar.addEvent(event_winterbreak.getNode())

    # add the tasks to both our event and our project
    event_winterbreak.addTask(task_develop_calendar.getNode())
    event_winterbreak.addTask(task_develop_task_system.getNode())
    event_winterbreak.addTask(task_develop_workspace_system.getNode())
    project_intranet.addTask(task_develop_calendar.getNode())
    project_intranet.addTask(task_develop_task_system.getNode())
    project_intranet.addTask(task_develop_workspace_system.getNode())
    project_intranet.addTask(task_develop_project_system.getNode())

    # Add a project subtask to the workspace task
    task_develop_workspace_system.addSubTask(task_develop_project_system.getNode())

    # Add the Intranet Project to our workspace
    workspace_appteam.addProject(project_intranet.getNode())

    # task_develop_calendar.clear()
開發者ID:ashaycool,項目名稱:Cuore-Web-page,代碼行數:32,代碼來源:tasks_test.py


注:本文中的Project.Project.getNode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。